这个问题一直让我发疯,我无法解决如何修复它...
Undefined symbols for architecture armv7:
"_deflateEnd", referenced from:
-[ASIDataCompressor closeStream] in ASIDataCompressor.o
"_OBJC_CLASS_$_ASIDataDecompressor", referenced from:
objc-class-ref in ASIHTTPRequest.o
"_deflate", referenced from:
-[ASIDataCompressor compressBytes:length:error:shouldFinish:] in ASIDataCompressor.o
"_deflateInit2_", referenced from:
-[ASIDataCompressor setupStream] in ASIDataCompressor.o
ld: symbol(s) not found for architecture armv7
collect2: ld returned 1 exit status
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1
Run Code Online (Sandbox Code Playgroud)
我认为这与:
ld: symbol(s) not found for architecture armv7
Run Code Online (Sandbox Code Playgroud)
但我补充道:libz.1.2.3.dylib它没有帮助,任何人都有任何想法?
只有当我尝试在iPhone 5上构建并运行时,我才会收到此错误.它可以在iPhone 6或更高版本上正常运行.这些都是产生错误的cocoaPods.我已经运行了pod安装,pod更新,删除了pod并重新开始,没有:
我已经尝试了这里的所有答案:Cocoapods库的架构armv7的未定义符号没有运气.以下是pod安装的详细输出
Analyzing dependencies
Inspecting targets to integrate
Using `ARCHS` setting to build architectures of target `Pods-Celeo`: (``)
Finding Podfile changes
- Braintree
- ConciseKit
- EDStarRating
- Google
- IDMPhotoBrowser
- KAProgressLabel
- MBProgressHUD
- MagicalRecord
- SFHFKeychainUtils
- TwilioConversationsClient
- TwilioSDK
Resolving dependencies of `Podfile`
Comparing resolved specification to the sandbox manifest
- Braintree
- ConciseKit
- DACircularProgress
- EDStarRating
- FirebaseAnalytics
- FirebaseInstanceID
- Google
- GoogleAnalytics
- GoogleInterchangeUtilities
- GoogleSymbolUtilities
- GoogleUtilities …Run Code Online (Sandbox Code Playgroud)