objective-c - 构建 iOS 应用程序后退出代码 1 错误

标签 objective-c ios build restkit

我正在尝试使用 RestKit 构建我的项目,当我构建它时出现以下错误。我曾尝试使用 Apple LLVM 3.0 和 LLVM GCC 4.2 进行编译,两者都产生了相同的结果。任何人都知道是什么导致了这个问题?

Ld "/Users/Jim/Library/Developer/Xcode/DerivedData/Line-dmzyzxolztfnmyeuzqkqcinpsoeq/Build/Products/Debug-iphonesimulator/Line.app/Line" normal i386
    cd "/Jim/Documents/Xcode Projects/Line"
    setenv MACOSX_DEPLOYMENT_TARGET 10.6
    setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk "-L/Users/Jim/Library/Developer/Xcode/DerivedData/Line-dmzyzxolztfnmyeuzqkqcinpsoeq/Build/Products/Debug-iphonesimulator" "-F/Users/Jim/Library/Developer/Xcode/DerivedData/Line-dmzyzxolztfnmyeuzqkqcinpsoeq/Build/Products/Debug-iphonesimulator" -filelist "/Users/Jim/Library/Developer/Xcode/DerivedData/Line-dmzyzxolztfnmyeuzqkqcinpsoeq/Build/Intermediates/Line.build/Debug-iphonesimulator/Line.build/Objects-normal/i386/Line.LinkFileList" -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 ObjC -all_load -fobjc-arc -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=50000 -framework Security -framework MobileCoreServices -framework CFNetwork -framework SystemConfiguration -lxml2 "/Users/Jim/Library/Developer/Xcode/DerivedData/Line-dmzyzxolztfnmyeuzqkqcinpsoeq/Build/Products/Debug-iphonesimulator/libRestKit.a" -framework CoreData -framework UIKit -framework Foundation -framework CoreGraphics -o "/Users/Jim/Library/Developer/Xcode/DerivedData/Line-dmzyzxolztfnmyeuzqkqcinpsoeq/Build/Products/Debug-iphonesimulator/Line.app/Line"

Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang failed with exit code 1

enter image description here

最佳答案

阿特尔乔: 您是否根据 github.com/RestKit 上的维基页面“在 Xcode 4.x 中安装 RestKit”构建了 RestKit?我认为有一个小错误。 这是我的解决方案: 1. 在“Build Phases”->“Link Binary With Libraries”中,删除 RestKit.framework 并添加 Security.frameWork 2. 重新构建

然后就可以了。

关于objective-c - 构建 iOS 应用程序后退出代码 1 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8397287/

相关文章:

ios - 避免由于单元格中其他按钮的高度扩展而导致按钮高度扩展

Maven:不可解析的父 POM 和 'parent.relativePath' 指向错误的本地 POM

linux - 如何在 Makefile 中捕获退出 (ctrl+c) 信号?

build - 有没有办法自动执行 SEO 检查?

ios - IBOutlet 引用两个 Storyboard

objective-c - 更改目标的 super View 后检测 TouchesEnded

objective-c - 在 @objc 协议(protocol)中用闭包定义方法

objective-c - UIViewController 的子类显示黑屏

ios - 从 TableView 行向 NSMutableDictionary 添加值

iphone - 有没有办法找到设置了 AspectFit 的 UIImageView 内图像的调整大小高度/宽度?