如何解决带有SDK问题的存档:无法生成位码包
我在尝试存档我的应用程序以进行部署时遇到了麻烦。存档时出现以下错误:
位码束无法生成,因为 '/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
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
我将不胜感激!
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。