clang:错误:没有这样的文件或目录:'dynamic_lookup'clang:错误:没有这样的文件或目录:'suppress'

时间:2015-08-10 15:32:48

标签: parsing clang parseui

当我在Podfile中添加var query = { "products": { "$elemMatch": { "category": '0', "id": '0' } } }; var secondaryQuery = { 'products.$': 1 }; collection.find(query, secondaryQuery) lib时,安装pod之后,出现此错误:

ParseUI

我尝试删除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' 并在我的构建设置中取消,但它仍然会出现相同的错误。

1 个答案:

答案 0 :(得分:2)

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

来自:

-read_only_relocs -undefined dynamic_lookup suppress

致:

-read_only_relocs suppress -undefined dynamic_lookup