【发布时间】:2015-08-28 04:55:42
【问题描述】:
我正在开发我的应用程序,没有更改任何设置或 pod,我尝试在大约两周后归档构建,但失败了。然后我尝试调试构建(正常 Cmd+R),但失败并出现错误:
ld: library not found for -lPods-AFNetworking
我尝试过pod install 很多次。我尝试删除与 pod 相关的所有内容(而不是 Podfile 本身)并再次创建 pod install/pod update。没用。
这是我的 Podfile:
platform :ios, '8.0'
link_with 'MY_APP_NAME_REDACTED'
pod 'Parse', '1.7.4'
pod 'ParseFacebookUtils', '1.7.4'
pod 'ParseCrashReporting', '1.7.4'
pod 'GPUImage'
pod 'AFNetworking'
pod 'IntentKit'
inhibit_all_warnings!
我还没有碰过它,直到今天早上它都可以正常工作。现在,经过我尝试过的一切,重新安装后,我得到了:
Lexical or preprocessor issue: 'Parse/Parse.h' file not found 在我的应用扩展中(我的应用本身似乎没有问题)。
我不知道构建系统如何能够有效地“自毁”自身。我没有进行任何 pod 更新、pod 安装、我没有接触 Podfile、我没有更改我的项目中的任何配置设置等。我只是编写了代码,当我尝试归档我的项目以发送给 beta 测试人员时,它坏了。
如果我更改我的 podfile 并将我的共享扩展名添加到 link_with:
platform :ios, '8.0'
link_with 'MY_APP_NAME_REDACTED', 'Share Extension'
pod 'Parse', '1.7.4'
pod 'ParseFacebookUtils', '1.7.4'
pod 'ParseCrashReporting', '1.7.4'
pod 'GPUImage'
pod 'AFNetworking'
pod 'IntentKit'
inhibit_all_warnings!
然后我收到一些警告和错误。
Pods was rejected as an implicit dependency for 'libPods.a' because its architectures 'arm64' didn't contain all required architectures 'armv7 arm64'
ld: warning: directory not found for option '-L/Users/Can/Documents/Programming/iOS/MY_APP_NAME_REDACTED/build/Debug-iphoneos'
ld: warning: directory not found for option '-L/Users/Can/Documents/Programming/iOS/MY_APP_NAME_REDACTED/build/Release-iphoneos'
ld: library not found for -lPods-AFNetworking <--- THIS IS ERROR
如何重新构建我的项目?我在 Xcode 6.3.2 和 CocoaPods 0.37.2 上。
【问题讨论】:
标签: ios xcode xcode6 cocoapods ios-app-extension