iOS app won't compile on device but works fine in simulator
- by Jhorra
I'm assuming this has something to do with linking, but I've removed RestKit and re-added it. I made sure all my connections and linking was in place. If I set XCode to use the simulator it runs fine, but as soon as I set it to run on any device it won't even build. The only other thing of note is this didn't start happening till I upgraded to XCode 4.5. Below are the errors it gives me
ld: warning: ignoring file /Users/luke/Library/Developer/Xcode/DerivedData/ehrx-btsujlxuhtytahfaikwjeqfjybtt/Build/Products/Debug-iphoneos/libRestKit.a, file was built for archive which is not the architecture being linked (armv7s): /Users/luke/Library/Developer/Xcode/DerivedData/ehrx-btsujlxuhtytahfaikwjeqfjybtt/Build/Products/Debug-iphoneos/libRestKit.a
Undefined symbols for architecture armv7s:
"_OBJC_CLASS_$_RKClient", referenced from:
objc-class-ref in ehrxAppDelegate.o
objc-class-ref in ehrxLoginView.o
objc-class-ref in ehrxInboxView.o
objc-class-ref in ehrxCMView.o
objc-class-ref in ehrxEncounterDemoView.o
objc-class-ref in ehrxEncounterDiagListView.o
objc-class-ref in ehrxEncounterChargeView.o
...
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)