在Podfile中声明架构 [英] Declare Architecture in Podfile
问题描述
是否可以在CocoaPods Podfile
中包含该体系结构?我正在尝试同时为32位和64位构建应用程序,但是当我在项目的构建设置中切换到标准体系结构(包括64位)
时,它抱怨我应该让它自动选择体系结构.这样做会将我的项目还原为 Standard体系结构
.我感觉Xcode正在这样做,因为Pods项目(在我的Xcworkspace中)在其体系结构中不包括64位.有没有一种方法可以将其添加到 Podfile
中(如果Pod自己做的话,我认为更好),或者也应该在Pods项目中更改它.
Is there a way to include the architecture in a CocoaPods Podfile
? I am trying to build my app for both 32 and 64 bit but when I switch to Standard architectures (including 64-bit)
in my project's build settings, it complains that I should let it automatically choose architectures. Doing this reverts my project back to Standard architectures
. I have a feeling that Xcode is doing this because the Pods project (in my Xcworkspace) does not include 64-bit in its architectures. Is there a way to add this to the Podfile
(I assume better if Pod does it itself) or should I change it in the Pods project as well.
我当前的 Podfile
:
xcodeproj 'Nobles/Nobles.xcodeproj'
platform :ios, '7.0'
pod 'Reachability'
pod 'TWTSideMenuViewController'
推荐答案
我正在寻找类似问题的答案,发现了这一点:
I'm searching for answers to a similar issue and found this: