我假设这与链接有关,但我已经删除了 RestKit 并重新添加了它。我确保我所有的连接和链接都到位。如果我将 XCode 设置为使用模拟器,它运行良好,但是一旦我将它设置为在任何设备上运行,它甚至都不会构建。唯一需要注意的是,直到我升级到 XCode 4.5 才开始发生这种情况。以下是它给我的错误
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)
这些是 RestKit 的构建设置。