Comments (10)
You need to load the storyboard from the Framework Bundle path, it will fail to load from the app's bundle path, because it's not there.
- Load storyboard programmatically http://stackoverflow.com/questions/9896406/how-can-i-load-storyboard-programmatically-from-class
- Use the bundle loading code https://github.com/jverkoey/iOS-Framework#step-5-loading-bundle-resources
from ios-framework.
Hi, Im have come up at this same problem, but mine is a slightly different issue. I loaded the storyboard from the bundle and I get this error ''[<UIViewController 0x8ab1f80> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key'.
I have a label connected to from SB to the view controller. when i try to disconnect it, it works fine. Please help me.
from ios-framework.
Sounds like you have a connection to a IBOutlet or IBAction that doesn't
exist in code.
Right click and check all connections in the storyboard.
-Paul Solt
On Sat, Jan 25, 2014 at 7:24 AM, Mrithula [email protected] wrote:
Hi, Im have come up at this same problem, but mine is a slightly different
issue. I loaded the storyboard from the bundle and I get this error ''[
setValue:forUndefinedKey:]: this class is not key value coding-compliant
for the key'.
I have a label connected to from SB to the view controller. when i try to
disconnect it, it works fine. Please help me.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/66#issuecomment-33287776
.
Paul Solt
[email protected]
215-341-0407 (Cell)
http://www.PaulSolt.com/
Creative apps for iPhone and iPad: http://www.ArtworkEvolution.com/
from ios-framework.
Hi, I checked and have all connections. I saw same problem here http://stackoverflow.com/questions/19954771/ios-linking-framework-storyboard-to-viewcontroller-for-use-in-main-project, but i cannot set that flag, as i have another framework in this bundle.
from ios-framework.
Hi, this is the crash I get.
Unknown class NewViewController in Interface Builder file.
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0x8a9c760> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key newLabel.'
*** First throw call stack:
(
0 CoreFoundation 0x017345e4 exceptionPreprocess + 180
1 libobjc.A.dylib 0x014b78b6 objc_exception_throw + 44
2 CoreFoundation 0x017c46a1 -[NSException raise] + 17
3 Foundation 0x01178c2e -[NSObject(NSKeyValueCoding) setValue:forUndefinedKey:] + 282
4 Foundation 0x010e4f3b _NSSetUsingKeyValueSetter + 88
5 Foundation 0x010e4493 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 267
6 Foundation 0x0114694a -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] + 412
7 UIKit 0x004cbcd5 -[UIRuntimeOutletConnection connect] + 106
8 libobjc.A.dylib 0x014c97d2 -[NSObject performSelector:] + 62
9 CoreFoundation 0x0172fb6a -[NSArray makeObjectsPerformSelector:] + 314
10 UIKit 0x004ca82e -[UINib instantiateWithOwner:options:] + 1417
11 UIKit 0x0033cc95 -[UIViewController _loadViewFromNibNamed:bundle:] + 280
12 UIKit 0x0033d43d -[UIViewController loadView] + 302
13 UIKit 0x0033d73e -[UIViewController loadViewIfRequired] + 78
14 UIKit 0x0033dc44 -[UIViewController view] + 35
15 UIKit 0x0034d149 -[UIViewController shouldAutorotate] + 36
16 UIKit 0x0034d491 -[UIViewController _preferredInterfaceOrientationForPresentationInWindow:fromInterfaceOrientation:] + 297
17 UIKit 0x005d16e5 -[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:animation:] + 2330
18 UIKit 0x0034978c -[UIViewController presentViewController:withTransition:completion:] + 6433
19 UIKit 0x00349caf -[UIViewController presentViewController:animated:completion:] + 130
20 TestingCheck 0x000027e8 -[ViewController helloclieckd:] + 232
21 libobjc.A.dylib 0x014c9874 -[NSObject performSelector:withObject:withObject:] + 77
22 UIKit 0x0022bc8c -[UIApplication sendAction:to:from:forEvent:] + 108
23 UIKit 0x0022bc18 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61
24 UIKit 0x003236d9 -[UIControl sendAction:to:forEvent:] + 66
25 UIKit 0x00323a9c -[UIControl _sendActionsForEvents:withEvent:] + 577
26 UIKit 0x00322d4b -[UIControl touchesEnded:withEvent:] + 641
27 UIKit 0x002690cd -[UIWindow _sendTouchesForEvent:] + 852
28 UIKit 0x00269d34 -[UIWindow sendEvent:] + 1232
29 UIKit 0x0023da36 -[UIApplication sendEvent:] + 242
30 UIKit 0x00227d9f _UIApplicationHandleEventQueue + 11421
31 CoreFoundation 0x016bd8af __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 15
32 CoreFoundation 0x016bd23b __CFRunLoopDoSources0 + 235
33 CoreFoundation 0x016da30e __CFRunLoopRun + 910
34 CoreFoundation 0x016d9b33 CFRunLoopRunSpecific + 467
35 CoreFoundation 0x016d994b CFRunLoopRunInMode + 123
36 GraphicsServices 0x036d59d7 GSEventRunModal + 192
37 GraphicsServices 0x036d57fe GSEventRun + 104
38 UIKit 0x0022a94b UIApplicationMain + 1225
39 TestingCheck 0x00002c3d main + 141
40 libdyld.dylib 0x01d7270d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
from ios-framework.
- Is the interface (all views/viewcontrollers) being loaded from the
bundle?
https://github.com/jverkoey/iOS-Framework#step-5-loading-bundle-resources
- Did you disable code stripping on the project?
https://github.com/jverkoey/iOS-Framework#step-4-disable-code-stripping - Try and recreate the project following the steps and see if you can get
a test Xcode project working correctly.
-Paul Solt
On Sun, Jan 26, 2014 at 10:52 PM, Mrithula [email protected] wrote:
Hi, this is the crash I get.
Unknown class NewViewController in Interface Builder file.
*** Terminating app due to uncaught exception 'NSUnknownKeyException',
reason: '[ setValue:forUndefinedKey:]: this class is not key value
coding-compliant for the key newLabel.'
*** First throw call stack:
(
0 CoreFoundation 0x017345e4*exceptionPreprocess + 180 1 libobjc.A.dylib 0x014b78b6
objc_exception_throw + 44 2 CoreFoundation 0x017c46a1 -[NSException raise]
- 17 3 Foundation 0x01178c2e -[NSObject(NSKeyValueCoding)
setValue:forUndefinedKey:] + 282 4 Foundation 0x010e4f3b
NSSetUsingKeyValueSetter + 88 5 Foundation 0x010e4493
-[NSObject(NSKeyValueCoding) setValue:forKey:] + 267 6 Foundation
0x0114694a -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] + 412 7 UIKit
0x004cbcd5 -[UIRuntimeOutletConnection connect] + 106 8 libobjc.A.dylib
0x014c97d2 -[NSObject performSelector:] + 62 9 CoreFoundation 0x0172fb6a
-[NSArray makeObjectsPerformSelector:] + 314 10 UIKit 0x004ca82e -[UINib
instantiateWithOwner:options:] + 1417 11 UIKit 0x0033cc95
-[UIViewController _loadViewFromNibNamed:bundle:] + 280 12 UIKit 0x0033d43d
-[UIViewController loadView] + 302 13 UIKit 0x0033d73e -[UIViewController
loadViewIfRequired] + 78 14 UIKit 0x0033dc44 -[UIViewController view] + 35
15 UIKit 0x0034d149 -[UIViewController shouldAutorotate] + 36 16 UIKit
0x0034d491 -[UIViewController
_preferredInterfaceOrientationForPresentationInWindow:fromInterfaceOrientation:]- 297 17 UIKit 0x005d16e5 -[UIWindowController
transition:fromViewController:toViewController:target:didEndSelector:animation:]- 2330 18 UIKit 0x0034978c -[UIViewController
presentViewController:withTransition:completion:] + 6433 19 UIKit
0x00349caf -[UIViewController presentViewController:animated:completion:] +
130 20 TestingCheck 0x000027e8 -[ViewController helloclieckd:] + 232 21
libobjc.A.dylib 0x014c9874 -[NSObject
performSelector:withObject:withObject:] + 77 22 UIKit 0x0022bc8c
-[UIApplication sendAction:to:from:forEvent:] + 108 23 UIKit 0x0022bc18
-[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61 24 UIKit
0x003236d9 -[UIControl sendAction:to:forEvent:] + 66 25 UIKit 0x00323a9c
-[UIControl _sendActionsForEvents:withEvent:] + 577 26 UIKit 0x00322d4b
-[UIControl touchesEnded:withEvent:] + 641 27 UIKit 0x002690cd -[UIWindow
_sendTouchesForEvent:] + 852 28 UIKit 0x00269d34 -[UIWindow sendEvent:] +
1232 29 UIKit 0x0023da36 -[UIApplication sendEvent:] + 242 30 UIKit
0x00227d9f _UIApplicationHandleEventQueue + 11421 31 CoreFoundation
0x016bd8af _CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION* + 15
32 CoreFoundation 0x016bd23b __CFRunLoopDoSources0 + 235
33 CoreFoundation 0x016da30e __CFRunLoopRun + 910
34 CoreFoundation 0x016d9b33 CFRunLoopRunSpecific + 467
35 CoreFoundation 0x016d994b CFRunLoopRunInMode + 123
36 GraphicsServices 0x036d59d7 GSEventRunModal + 192
37 GraphicsServices 0x036d57fe GSEventRun + 104
38 UIKit 0x0022a94b UIApplicationMain + 1225
39 TestingCheck 0x00002c3d main + 141
40 libdyld.dylib 0x01d7270d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException—
Reply to this email directly or view it on GitHubhttps://github.com//issues/66#issuecomment-33340669
.
Paul Solt
[email protected]
215-341-0407 (Cell)
http://www.PaulSolt.com/
Creative apps for iPhone and iPad: http://www.ArtworkEvolution.com/
from ios-framework.
Thanks Paul, its working fine now.
But I have another question, right now i have all the images in my bundle, can i hide some of them so that no one can replace it ?
from ios-framework.
Hi Mrithula,
I am getting exactly same exception when I try to load the storyboard from the framework.
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0x109116010> setValue:forUndefinedKey:]:
Could you please share the steps to resolve this issue?
Thanks
Aniruddha
from ios-framework.
Hi,
I solved it by setting 'other linker flag to' -ObjC. If u still have
problem try setting it to -all_load -ObjC.
Hope it works.
On Thu, Jan 30, 2014 at 4:52 AM, a3kulkarni [email protected]:
Hi Mrithula,
I am getting exactly same exception when I try to load the storyboard from
the framework.*** Terminating app due to uncaught exception 'NSUnknownKeyException',
reason: '[ setValue:forUndefinedKey:]:Could you please share the steps to resolve this issue?
Thanks
AniruddhaReply to this email directly or view it on GitHubhttps://github.com//issues/66#issuecomment-33643696
.
from ios-framework.
Ok. Thanks, it worked.
from ios-framework.
Related Issues (20)
- Serenity.framework/Serenity (No such file or directory) HOT 2
- nested .bundle's possible? HOT 3
- Can I rename the framework or I need to create new project and target? HOT 2
- Unable to embed a static library in the Framework target HOT 1
- .a is not being created during build HOT 1
- Issue post start up.
- There are xcdatamodel files in frameworks, how can I package the mom files into resource bundle? HOT 1
- Using [NSBundle bundleForClass] gives bad path HOT 1
- Framework is not building for all architecture in Xcode 6.1 HOT 2
- Can I use cocoapods in my framework? HOT 4
- Missing cache file warnings for the framework built in Xcode 7 HOT 2
- Xcode 7 does not have armv7s in $(ARCHS_STANDARD) HOT 1
- XCode 7.1 Archive upload failure
- Error when creating Universal Build HOT 1
- Error when creating Universal Build HOT 1
- Header Files Visiblity
- Show dog breed and dog name in Admin.
- Module compiled with Swift 5.1.2 cannot be imported by the Swift 5.3 Compiler
- Update README to include instructions on how to create a 'pure build' without third party libraries HOT 2
- Will it generate dSYM file?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ios-framework.