Ios 协同设计吊舱的麻烦
我有一个有3个目标的项目: 1-DemoApp-iOS应用程序 2-DemoExt-iOS扩展 3-DemoFramework-iOS 8框架 我不确定我的podfile是否设置正确,因为我只在存档方面遇到了问题。 构建每个目标都很好Ios 协同设计吊舱的麻烦,ios,xcode,cocoapods,code-signing,reactive-cocoa,Ios,Xcode,Cocoapods,Code Signing,Reactive Cocoa,我有一个有3个目标的项目: 1-DemoApp-iOS应用程序 2-DemoExt-iOS扩展 3-DemoFramework-iOS 8框架 我不确定我的podfile是否设置正确,因为我只在存档方面遇到了问题。 构建每个目标都很好 source 'https://github.com/CocoaPods/Specs.git' platform :ios, '8.0' xcodeproj 'MyProject' target :DemoApp do use_frameworks!
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
xcodeproj 'MyProject'
target :DemoApp do
use_frameworks!
pod 'Facebook-iOS-SDK'
pod 'ReactiveCocoa'
end
target : DemoExt, :exclusive => true do
use_frameworks!
pod 'ReactiveCocoa'
end
target : DemoFramework do
use_frameworks!
pod 'ReactiveCocoa'
end
目的是让Facebook只安装在DemoApp上
DemoFramework用于DempApp和DemoExt目标
编译和运行时,一切看起来都很好。
只有当我尝试归档时,我才发现所有ReactiveCocoa框架都存在代码设计问题
代码设计/IntermediateBuildFilePath/UninstalledProducts/ReactiveCocoa.framework
cd/Pods
export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/toolschains/XcodeDefault.xctoolschain/usr/bin/CODESIGN_ALLOCATE
export PATH=“/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/sbin:/sbin”
签名标识:“iPhone分发…”
/usr/bin/codesign--force--sign/DerivedData/Pop adpfaxhfjfgnpbrabyuhgiyxgek/Build/Intermediates/ArchiveIntermediates/Pop/intermediatebuildfilepath/UninstalledProducts/ReactiveCocoa.framework
/Library/Developer/Xcode/DerivedData/Pop adpfaxhfjfgnpbrabyuhgiyxgek/Build/Intermediates/ArchiveIntermediates/Pop/intermediatebuildfilepath/UninstalledProducts/ReactiveCocoa.framework:
签名命令/usr/bin/codesign的格式无效或不受支持
失败,退出代码为1
虽然我验证了ReactiveCocoa.framework位于指定的目录,但代码设计仍然不起作用
任何帮助都将不胜感激。您尝试过这个吗?我尝试过从/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign\u allocate导出代码设计分配,但仍然得到相同的错误如果您只将ReactiveCocoa放在DemoFramework中会发生什么?那么我将无法在DemoApp
/usr/bin/codesign --force --sign <hash...> <path to DerivedData>/DerivedData/Pop-adpfaxhfjfgnnpbrabyuhgiyxgek/Build/Intermediates/ArchiveIntermediates/Pop/IntermediateBuildFilesPath/UninstalledProducts/ReactiveCocoa.framework