Xcode 4
Trimis: 11 August 2011 10:18 AM
[ Ignoră ]
[ # 46 ]
Moderator
Din: Cluj-Napoca
Macuser din: 26.01.06
Aveti idee cand primesc erori de genul asta cum pot afla ce obiect e la adresa respectiva?
*** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[UIImage initWithCoder:]: unrecognized selector sent to instance 0x4c6d310’
Semnătură
M cintoshing…
Trimis: 11 August 2011 11:41 AM
[ Ignoră ]
[ # 47 ]
Sr. Member
Din: Bucuresti
Macuser din: 22.09.06
pune niste breakpoints,iar in timp ce ruleaza aplicatiadaca tii mouse-ul in dreptul unei instante iti arata adresa.
Semnătură
A man should look for what is, and not for what he thinks should be.—Albert Einstein
Trimis: 11 August 2011 12:43 PM
[ Ignoră ]
[ # 48 ]
Moderator
Din: Cluj-Napoca
Macuser din: 26.01.06
pai ideea e ca in app delegate e totul ok iar in primul view controller nu ia niciun nslog, deci e ceva prin nib cred. si se intampla doar pe ios4, pe 5 merge.
2011-08-11 13:32:38.720 The Deals[28250:207] -[UIImage initWithCoder:]: unrecognized selector sent to instance 0x4c5b850
2011-08-11 13:32:38.725 The Deals[28250:207] *** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[UIImage initWithCoder:]: unrecognized selector sent to instance 0x4c5b850’
*** Call stack at first throw:
(
0 CoreFoundation 0x00f775a9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x010cb313 objc_exception_throw + 44
2 CoreFoundation 0x00f790bb -[NSObject(NSObject) doesNotRecognizeSelector:] + 187
3 CoreFoundation 0x00ee8966 ___forwarding___ + 966
4 CoreFoundation 0x00ee8522 _CF_forwarding_prep_0 + 50
5 UIKit 0x004ae9fd UINibDecoderDecodeObjectForValue + 2592
6 UIKit 0x004af6ac -[UINibDecoder decodeObjectForKey:] + 398
7 UIKit 0x00295db0 -[UIImageView initWithCoder:] + 97
8 UIKit 0x004ae9fd UINibDecoderDecodeObjectForValue + 2592
9 UIKit 0x004ae2f5 UINibDecoderDecodeObjectForValue + 792
10 UIKit 0x004af6ac -[UINibDecoder decodeObjectForKey:] + 398
11 UIKit 0x002006fb -[UIView initWithCoder:] + 642
12 UIKit 0x003e108c -[UIActivityIndicatorView initWithCoder:] + 58
13 UIKit 0x004ae9fd UINibDecoderDecodeObjectForValue + 2592
14 UIKit 0x004af6ac -[UINibDecoder decodeObjectForKey:] + 398
15 UIKit 0x003c4979 -[UIRuntimeConnection initWithCoder:] + 212
16 UIKit 0x004ae9fd UINibDecoderDecodeObjectForValue + 2592
17 UIKit 0x004ae2f5 UINibDecoderDecodeObjectForValue + 792
18 UIKit 0x004af6ac -[UINibDecoder decodeObjectForKey:] + 398
19 UIKit 0x003c3c36 -[UINib instantiateWithOwner:options:] + 804
20 UIKit 0x003c5ab7 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 168
21 UIKit 0x0027b628 -[UIViewController _loadViewFromNibNamed:bundle:] + 70
22 UIKit 0x00279134 -[UIViewController loadView] + 120
23 UIKit 0x0027900e -[UIViewController view] + 56
24 UIKit 0x00277482 -[UIViewController contentScrollView] + 42
25 UIKit 0x00287f25 -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] + 48
26 UIKit 0x00286555 -[UINavigationController _layoutViewController:] + 43
27 UIKit 0x00287870 -[UINavigationController _startTransition:fromViewController:toViewController:] + 524
28 UIKit 0x0028232a -[UINavigationController _startDeferredTransitionIfNeeded] + 266
29 UIKit 0x0039d2e9 -[UILayoutContainerView layoutSubviews] + 226
30 QuartzCore 0x00105a5a -[CALayer layoutSublayers] + 181
31 QuartzCore 0x00107ddc CALayerLayoutIfNeeded + 220
32 QuartzCore 0x000ad0b4 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 310
33 QuartzCore 0x000ae294 _ZN2CA11Transaction6commitEv + 292
34 UIKit 0x001cb9c9 -[UIApplication _reportAppLaunchFinished] + 39
35 UIKit 0x001cbe83 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 690
36 UIKit 0x001d6617 -[UIApplication handleEvent:withNewEvent:] + 1533
37 UIKit 0x001ceabf -[UIApplication sendEvent:] + 71
38 UIKit 0x001d3f2e _UIApplicationHandleEvent + 7576
39 GraphicsServices 0x01abf992 PurpleEventCallback + 1550
40 CoreFoundation 0x00f58944 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
41 CoreFoundation 0x00eb8cf7 __CFRunLoopDoSource1 + 215
42 CoreFoundation 0x00eb5f83 __CFRunLoopRun + 979
43 CoreFoundation 0x00eb5840 CFRunLoopRunSpecific + 208
44 CoreFoundation 0x00eb5761 CFRunLoopRunInMode + 97
45 UIKit 0x001cb7d2 -[UIApplication _run] + 623
46 UIKit 0x001d7c93 UIApplicationMain + 1160
47 The Deals 0x000024f4 main + 102
48 The Deals 0x00002485 start + 53
)
terminate called after throwing an instance of ‘NSException’
Semnătură
M cintoshing…
Trimis: 11 August 2011 12:50 PM
[ Ignoră ]
[ # 49 ]
Sr. Member
Din: Bucuresti
Macuser din: 22.09.06
Ai vreun custom view?
Daca incarci instante ale unui custom view dintr-un nib se apeleaza initWithCoder si initializarea trebuie sa fie facuta aici.
Din ce vad la tine [UIImage initWithCoder:] unrecognized selector sent to instance 0x4c5b850 eu unu as incerca cu breakpoints pana intr-un punct unde nu da crash,apoi as merge pas cu pas pana descopar problema.
Cum am scris si mai devreme,daca tii cursorul mouse-ului pe numele instantei folosind breakpoints o sa vezi live adresa instantei,si e posibil sa descoperi adresa cu problema 0x4c5b850
Semnătură
A man should look for what is, and not for what he thinks should be.—Albert Einstein
Trimis: 11 August 2011 01:02 PM
[ Ignoră ]
[ # 50 ]
Moderator
Din: Cluj-Napoca
Macuser din: 26.01.06
este chiar la inceputul aplicatiei, crapa dupa splashscreen.
incerc niste breakpoints sa vad daca reusesc ceva.
Semnătură
M cintoshing…
Trimis: 11 August 2011 02:10 PM
[ Ignoră ]
[ # 51 ]
Moderator
Din: Cluj-Napoca
Macuser din: 26.01.06
pana la urma am rezolvat dar nu sunt sigur de la ce era. view controlleru meu extindea pe altul, si ce am observat in ios4 este ca nu pot accesa proprietatile daca nu sunt publice, deci trebuia sa le apelez cu super.tableView…. in ios5 se pare ca se poate sa le apelez direct.
Semnătură
M cintoshing…
Trimis: 11 August 2011 03:56 PM
[ Ignoră ]
[ # 52 ]
Moderator
Din: Cluj-Napoca
Macuser din: 26.01.06
am descoperit de la ce era dar nu si de ce. am sters totul si am pus iar elementele, cand am ajuns la uiactivityindicator crapa, fie ca i-am facut legaturile fie ca nu. ciudat.
Semnătură
M cintoshing…
Trimis: 24 August 2011 11:45 AM
[ Ignoră ]
[ # 53 ]
Jr. Member
Din: Bucuresti
Macuser din: 26.03.10
Exceptia ridicata iti indica clar problema. nici UIImage si nici superclasa sa, NSObject, nu implementeaza selectorul initWithCoder:. asadar, UIBuilder FTW )... NOT!
Semnătură
iPhone 5 16GB black, iOS 7 beta 5
MacBook Pro 15” Unibody, Late 2011 2,4 Ghz Intel Core i7, 8GB RAM, 128GB SSD, Radeon 6770 1GB, HiRes Display, OS X 10.8.3
Thunderbolt Display
Trimis: 25 August 2011 12:19 PM
[ Ignoră ]
[ # 54 ]
Moderator
Din: Cluj-Napoca
Macuser din: 26.01.06
va merge xcode beta 6? imi arata ca o sa instaleze 0K si apoi da si eroare. pe doua calculatoare se intampla asta, deci…
Semnătură
M cintoshing…
Trimis: 25 August 2011 03:25 PM
[ Ignoră ]
[ # 55 ]
Jr. Member
Din: Bucuresti
Macuser din: 26.03.10
ce are in plus xcode beta 6 de ti-l doresti asa de tare?
Semnătură
iPhone 5 16GB black, iOS 7 beta 5
MacBook Pro 15” Unibody, Late 2011 2,4 Ghz Intel Core i7, 8GB RAM, 128GB SSD, Radeon 6770 1GB, HiRes Display, OS X 10.8.3
Thunderbolt Display
Trimis: 25 August 2011 03:31 PM
[ Ignoră ]
[ # 56 ]
Member
Din: Bucuresti
Macuser din: 12.04.08
are nevoie de el pt ios5 beta 6.
mi-l iau si eu sa-l instlez, da’ nu cred ca apuc sa-l testez acum.
Semnătură
fight apathy. or don’t.
Trimis: 25 August 2011 07:18 PM
[ Ignoră ]
[ # 57 ]
Moderator
Din: Cluj-Napoca
Macuser din: 26.01.06
aparent inca merge sa compilez din xcode beta 5 pe ios beta 6 dar poate au mai rezolvat din bugurile nesimtite. mentionez ca am snow.
Semnătură
M cintoshing…
Trimis: 26 August 2011 11:45 AM
[ Ignoră ]
[ # 58 ]
Member
Din: Bucuresti
Macuser din: 12.04.08
mi-a mers fara erori da’ pe lion
Semnătură
fight apathy. or don’t.
Trimis: 27 August 2011 10:48 AM
[ Ignoră ]
[ # 59 ]
Moderator
Din: Cluj-Napoca
Macuser din: 26.01.06
cred ca ati trecut toti pe lion, asta e.
Semnătură
M cintoshing…
Trimis: 03 Septembrie 2011 04:14 AM
[ Ignoră ]
[ # 60 ]
Moderator
Din: Cluj-Napoca
Macuser din: 26.01.06
merge beta 7. sunt f curios ce i-au facut kitului pentru ca ocupa jumatate din cat ocupa inainte, 1.7G
Semnătură
M cintoshing…