0
Ld /Users/Admin/Library/Developer/Xcode/DerivedData/Radius-cxycjazfyueurigdymnvyxtqwulq/Build/Products/Debug-iphonesimulator/Radius.app/Radius normal x86_64
    cd /Users/Admin/Desktop/Radius/Radius
    export IPHONEOS_DEPLOYMENT_TARGET=8.1
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk -L/Users/Admin/Library/Developer/Xcode/DerivedData/Radius-cxycjazfyueurigdymnvyxtqwulq/Build/Products/Debug-iphonesimulator -L/Users/Admin/Desktop/Radius/Radius/Radius -F/Users/Admin/Library/Developer/Xcode/DerivedData/Radius-cxycjazfyueurigdymnvyxtqwulq/Build/Products/Debug-iphonesimulator -F/Users/Admin/Desktop/Radius/Radius/Radius -filelist /Users/Admin/Library/Developer/Xcode/DerivedData/Radius-cxycjazfyueurigdymnvyxtqwulq/Build/Intermediates/Radius.build/Debug-iphonesimulator/Radius.build/Objects-normal/x86_64/Radius.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=8.1 -framework FacebookSDK -framework AssetsLibrary -Xlinker -dependency_info -Xlinker /Users/Admin/Library/Developer/Xcode/DerivedData/Radius-cxycjazfyueurigdymnvyxtqwulq/Build/Intermediates/Radius.build/Debug-iphonesimulator/Radius.build/Objects-normal/x86_64/Radius_dependency_info.dat -o /Users/Admin/Library/Developer/Xcode/DerivedData/Radius-cxycjazfyueurigdymnvyxtqwulq/Build/Products/Debug-iphonesimulator/Radius.app/Radius

ld: warning: ignoring file /Users/Admin/Desktop/Radius/Radius/Radius/AssetsLibrary.framework/AssetsLibrary, missing required architecture x86_64 in file /Users/Admin/Desktop/Radius/Radius/Radius/AssetsLibrary.framework/AssetsLibrary (3 slices)
Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_ALAssetsLibrary", referenced from:
      objc-class-ref in EditProfileViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
4

3 回答 3

0

“clang: error: linker command failed with exit code 1”通常发生在您不小心添加(导入)实现文件(.m)代替头(.h)文件时。

检查并确认是否未导入 EditProfileViewController.m。

于 2014-11-12T18:25:00.143 回答
0

该错误表明 /Users/Admin/Desktop/Radius/Radius/Radius/AssetsLibrary.framework/AssetsLibrary 缺少 x86_64 模拟器片。

假设您自己构建了该框架,请使用 i386 和 x86_64 模拟器切片对其进行更新(为 i386 和 x86_64 构建,然后将生成的切片 lipo 到通用框架中)。

如果您是从第 3 方获得的,请联系他们以获取具有所有适当切片的框架版本。

于 2014-11-12T19:59:59.100 回答
0

我刚刚删除了库及其引用。清理项目,再次添加所需的库并检查所有引用和链接,构建并运行项目。

有效!

于 2014-11-13T10:14:56.523 回答