0

ld /Users/xxxxxxx/Library/Developer/Xcode/DerivedData/Affectiva-cwgdzearaapwhxcpqywcfkycewwz/Build/Products/Debug-iphonesimulator/Affectiva.app/Affectiva normal x86_64 cd /Users/xxxxxxx/Desktop/Affectiva export IPHONEOS_DEPLOYMENT_TARGET=9.3 export PATH=" /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/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/iPhoneSimulator9.3。sdk -L/Users/xxxxxxx/Library/Developer/Xcode/DerivedData/Affectiva-cwgdzearaapwhxcpqywcfkycewwz/Build/Products/Debug-iphonesimulator -F/Users/xxxxxxx/Library/Developer/Xcode/DerivedData/Affectiva-cwgdzearaapwhxcpqywcfkycewwz/Build/Products/ Debug-iphonesimulator -filelist /Users/xxxxxxx/Library/Developer/Xcode/DerivedData/Affectiva-cwgdzearaapwhxcpqywcfkycewwz/Build/Intermediates/Affectiva.build/Debug-iphonesimulator/Affectiva.build/Objects-normal/x86_64/Affectiva.LinkFileList -Xlinker - rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=9.3 -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -framework Affdex -Xlinker -dependency_info -Xlinker /Users/ xxxxxxx/库/开发人员/Xcode/DerivedData/Affectiva-cwgdzearaapwhxcpqywcfkycewwz/Build/Intermediates/Affectiva。build/Debug-iphonesimulator/Affectiva.build/Objects-normal/x86_64/Affectiva_dependency_info.dat -o /Users/xxxxxxx/Library/Developer/Xcode/DerivedData/Affectiva-cwgdzearaapwhxcpqywcfkycewwz/Build/Products/Debug-iphonesimulator/Affectiva.app/情感

ld:找不到框架 Affdex clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)


N00b 问题。

我究竟做错了什么?

4

1 回答 1

1

这个错误:

ld: framework not found Affdex clang: error: linker command failed with exit code 1 (use -v to see invocation)

表示链接器找不到 Affdex.framework。

您是否将 Affdex.framework 文件拖到您的 Xcode 项目中?此操作允许 Xcode 将框架与您的项目相关联,并且应该解决链接器错误。

请注意,您还需要将 Affdex.framework 添加为嵌入式二进制文件,以便在构建时将其复制到您的应用程序中。这可以通过在 Xcode 中选择目标应用程序,然后转到“General”选项卡并将 Affdex.framework 添加到“Embedded Binaries”部分来完成。

于 2016-07-13T12:06:06.127 回答