clang: error: no such file or directory: 'dynamic_lookup' clang: error: no such file or directory: 'suppress'

clang: error: no such file or directory: 'dynamic_lookup' clang: error: no such file or directory: 'suppress'

当我在我的 Podfile 中添加 ParseUI 库时,在安装 pod 后,出现此错误:

Ld /Users/dvs/Library/Developer/Xcode/DerivedData/CashCourier-ahmlxuauwynijtcqhgxogvibozet/Build/Products/Debug-iphonesimulator/CashCourier.app/CashCourier normal x86_64
cd /Users/dvs/Desktop/Workspace/cash-ios
export IPHONEOS_DEPLOYMENT_TARGET=8.2
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.4.sdk -L/Users/dvs/Library/Developer/Xcode/DerivedData/CashCourier-ahmlxuauwynijtcqhgxogvibozet/Build/Products/Debug-iphonesimulator -L/Users/dvs/Desktop/Workspace/cash-ios/Pods/Parse -L/Users/dvs/Desktop/Workspace/cash-ios/Pods/TwilioSDK/Libraries -F/Users/dvs/Library/Developer/Xcode/DerivedData/CashCourier-ahmlxuauwynijtcqhgxogvibozet/Build/Products/Debug-iphonesimulator -F/Users/dvs/Desktop/Workspace/cash-ios/Pods/Testfire/Testfire -filelist /Users/dvs/Library/Developer/Xcode/DerivedData/CashCourier-ahmlxuauwynijtcqhgxogvibozet/Build/Intermediates/CashCourier.build/Debug-iphonesimulator/CashCourier.build/Objects-normal/x86_64/CashCourier.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -objc_abi_version -Xlinker 2 -ObjC -read_only_relocs -undefined dynamic_lookup suppress -lBolts -lJVFloatLabeledTextField -lParse -lParseLib -lParseUI -lTwilioClient -lcrypto -llibPhoneNumber-iOS -lsqlite3 -lssl -lz -framework AVFoundation -framework Accelerate -framework AudioToolbox -framework CFNetwork -framework CoreGraphics -framework CoreLocation -framework CoreTelephony -framework CoreVideo -framework Foundation -framework MobileCoreServices -framework QuartzCore -framework Security -framework StoreKit -framework SystemConfiguration -framework Testfire -framework UIKit -weak_framework Accounts -weak_framework Social -read_only_relocs -lBolts -lJVFloatLabeledTextField -lParse -lParseLib -lParseUI -lTwilioClient -lcrypto -llibPhoneNumber-iOS -lsqlite3 -lssl -lz -framework AVFoundation -framework Accelerate -framework AudioToolbox -framework CFNetwork -framework CoreGraphics -framework CoreLocation -framework CoreTelephony -framework CoreVideo -framework Foundation -framework MobileCoreServices -framework QuartzCore -framework Security -framework StoreKit -framework SystemConfiguration -framework Testfire -framework UIKit -weak_framework Accounts -weak_framework Social -ObjC -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=8.2 -lPods -Xlinker -dependency_info -Xlinker /Users/dvs/Library/Developer/Xcode/DerivedData/CashCourier-ahmlxuauwynijtcqhgxogvibozet/Build/Intermediates/CashCourier.build/Debug-iphonesimulator/CashCourier.build/Objects-normal/x86_64/CashCourier_dependency_info.dat -o /Users/dvs/Library/Developer/Xcode/DerivedData/CashCourier-ahmlxuauwynijtcqhgxogvibozet/Build/Products/Debug-iphonesimulator/CashCourier.app/CashCourier

clang: error: no such file or directory: 'dynamic_lookup'
clang: error: no such file or directory: 'suppress'

我试图在我的构建设置中删除 dynamic_lookup 和抑制,但它仍然给出相同的错误。

我通过修改 Pods/Pods.debug.xcconfig 文件解决了这个问题(Pods.release.xcconfig 也是如此)。不知何故,生成的 xcconfig 文件不正确。

发件人:

-read_only_relocs -undefined dynamic_lookup suppress

收件人:

-read_only_relocs suppress -undefined dynamic_lookup