Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.10.13 iOS OC版本,bitcode问题 #315

Open
xiaowei4895 opened this issue May 10, 2022 · 2 comments
Open

2.10.13 iOS OC版本,bitcode问题 #315

xiaowei4895 opened this issue May 10, 2022 · 2 comments

Comments

@xiaowei4895
Copy link

xiaowei4895 commented May 10, 2022

SDK是2.10.13版本,并通过命令自己生成,然后加入到xcode工程中。
$ sh ./buildiOSFramework.sh

打App Archive包的时候会报错:
Bitcode bundle could not be generated because '....../AliyunOSSiOS.framework/AliyunOSSiOS(OSSNetworkingRequestDelegate.o)' was built without full bitcode. All object files and libraries for bitcode must be generated from Xcode Archive or Install build file '....../AliyunOSSiOS.framework/AliyunOSSiOS' for architecture arm64

历史issues中有提到这个问题,也解决过,但不知为何最新版本还是会报错。

尝试回滚到引入OSS SDK之前的版本,是可以打Archive包通过的,也有引入其他的framework(如github.com/Tencent/ncnn),他们打Archive包就都没问题。

@xiaowei4895 xiaowei4895 changed the title 2.10.13版本,bitcode问题 2.10.13 iOS OC版本,bitcode问题 May 10, 2022
@xiaowei4895
Copy link
Author

xiaowei4895 commented May 10, 2022

自己DIY,参考这两篇文章,在buildiOSFramework.sh脚本中第一个xcodebuild命令上,增加BITCODE_GENERATION_MODE=bitcode参数,打包出来的AliyunOSSiOS.framework,就可以打Archive包通过。

https://stackoverflow.com/questions/31486232/how-do-i-xcodebuild-a-static-library-with-bitcode-enabled
https://stackoverflow.com/questions/34959767/whats-the-difference-between-fembed-bitcode-and-bitcode-generation-mode/34965178#34965178

@hyouuu
Copy link

hyouuu commented Jun 17, 2022

谢谢楼上的解决方案!建议加到repo的sh里

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants