更新到Xcode 5.1后,我无法再为64位模拟器构建项目,收到此错误:
No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386).
Run Code Online (Sandbox Code Playgroud)
这些是我的目标构建设置:

我尝试将"Build Active Architecture"更改为No,并将"i386"添加到"Valid Architectures",但遗憾的是两者都没有.谢谢你的任何建议!
不可否认,自从我在项目中运行pod更新以来,已经有一段时间了.今天我试图做到这一点,并遇到了问题.
运行'pod update'后,项目将无法编译.这是我注意到的.更新本身似乎运行正常,就像正常一样.我注意到'Pods/Target Support Files`中的所有文件都已被删除.
当我尝试构建时,我的大多数pod都会出现类似这样的错误:
lang: error: no such file or directory: '/Users/logan/development/ProjectNameRemoved/src/Pods/Target Support Files/Pods-AJNotificationView/Pods-AJNotificationView-dummy.m'
Run Code Online (Sandbox Code Playgroud)
clang: error: no input files
当我使用此错误转到pod的Build Phases时,我可以看到虚拟.m文件仍在那里,即使它不存在:

删除所有这些似乎没有帮助,因为我开始得到以下错误:
深入到目标的设置我可以看到GCC前缀头仍然设置为使用不存在的pch文件:
我不确定从哪里开始.似乎pod更新正在删除某些文件,但我的pbxproj没有更新以关联这些更改.我是否需要弄清楚如何手动执行此操作?
我目前正在运行XCode7和CocoaPods 0.38.2
我有一个带有可可触摸框架的iOS项目,我想使用CocoaPods.据我所知,一切都运行正常,但是我收到了包含所有pod的以下警告(这里以示例为例)MagicalRecord.
objc[56961]: Class MagicalRecord is implemented in both /Users/stefan/Library/Developer/Xcode/DerivedData/FrameworkPlayground-ecdubsjzkmacfihjxoxvlznqvgmg/Build/Products/Debug-iphonesimulator/SharedDataSource.framework/SharedDataSource and /Users/stefan/Library/Developer/CoreSimulator/Devices/41B1BE94-1242-4538-8D60-23BAC3337308/data/Containers/Bundle/Application/B8ADA4E6-02BC-4095-8A14-D254C13D0928/FrameworkPlayground.app/FrameworkPlayground. One of the two will be used. Which one is undefined.
objc[56961]: Class PodsDummy_Pods_MagicalRecord is implemented in both /Users/stefan/Library/Developer/Xcode/DerivedData/FrameworkPlayground-ecdubsjzkmacfihjxoxvlznqvgmg/Build/Products/Debug-iphonesimulator/SharedDataSource.framework/SharedDataSource and /Users/stefan/Library/Developer/CoreSimulator/Devices/41B1BE94-1242-4538-8D60-23BAC3337308/data/Containers/Bundle/Application/B8ADA4E6-02BC-4095-8A14-D254C13D0928/FrameworkPlayground.app/FrameworkPlayground. One of the two will be used. Which one is undefined.
Run Code Online (Sandbox Code Playgroud)
我将Xcode项目上传到github,可以在这里找到:https://github.com/haemi/FrameworkWithCocoaPods
这里有两张来自当前设置的图片:

