링크와 관련이 있다고 가정하고 있지만 RestKit을 삭제하고 다시 추가했습니다. 모든 연결과 연결이 제대로되었는지 확인했습니다. 시뮬레이터를 사용하도록 XCode를 설정하면 잘 실행되지만 모든 장치에서 실행되도록 설정하면 빌드되지 않습니다. 주목할 유일한 다른 점은 Xcode 4.5로 업그레이드 할 때까지 이런 일이 발생하지 않았다는 것입니다. 아래에 오류가 있습니다.iOS 앱은 기기에서 컴파일되지 않지만 시뮬레이터에서 제대로 작동합니다.
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의 빌드 설정입니다.
'-v'를 사용하여 호출을 보았을 때 무엇이라고 말 했나요? –
이 인스턴스에서 -v를 사용하는 방법을 잘 모르겠습니다. – Jhorra