我在尝试存档我的应用程序以进行部署时遇到了麻烦。存档时出现以下错误:
位码束无法生成,因为 '/Users/dev/Documents/app-master/Frameworks/Network.framework/Network' 是在没有完整位码的情况下构建的。所有框架和dylibs的位码 必须从Xcode存档生成或安装生成文件'/ Use rs / dev / Documents / app-master / Frameworks / Network.framework / Network” 架构arm64
As you can see I tried to archived project with my own frameworks. Framework has been tested several times and app worked fine. Though I tried two solutions from here to add following snippets to my pod file but it didn't treat my issue.
First solution:
post_install做|安装程序| installer.pods_project.targets.each做| target | target.build_configurations.each做| config | config.build_settings ['BITCODE_GENERATION_MODE'] ='位码' config.build_settings ['ENABLE_BITCODE'] ='是' 结束 结束 结束
and the second one:
def enable_bitcode_in(config) cflags = config.build_settings ['OTHER_CFLAGS'] || ['$(继承)'] 如果config.name =='发布' cflags <<'-fembed-bitcode' config.build_settings ['BITCODE_GENERATION_MODE'] ='位码' else#'调试' cflags <<'-fembed-bitcode-marker' config.build_settings ['BITCODE_GENERATION_MODE'] ='标记' 结束 config.build_settings ['OTHER_CFLAGS'] = cflags 结束
def enable_bitcode_for(targets) targets.each do |target| target.build_configurations.each do |config| enable_bitcode_in(config) end end end
post_install do |installer|
enable_bitcode_for(installer.pods_project.targets)
end
我将不胜感激!