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

iOS 打包时候报错 #42

Closed
peak77 opened this issue Aug 16, 2017 · 6 comments
Closed

iOS 打包时候报错 #42

peak77 opened this issue Aug 16, 2017 · 6 comments

Comments

@peak77
Copy link

peak77 commented Aug 16, 2017

引入Sonic.framework,打包的时候报错
Sonic.framework/Sonic(SonicUitil.o)' was built without full bitcode. All object files and libraries for bitcode must be generated from Xcode Archive or Install build for architecture arm64

@peak77
Copy link
Author

peak77 commented Aug 16, 2017

当项目中没有使用cocopods时候打包是正确的,但是当使用cocopods时,就会出现这个错误。

@peak77
Copy link
Author

peak77 commented Aug 17, 2017

问题解决了,解决了也有点懵。
1、Sonic.framework的是release版本的(不知道和这个有关系吗)
2、把bitcode关了

@peak77 peak77 closed this as completed Aug 17, 2017
@zyvincent
Copy link
Contributor

不需要关闭bitcode,需要在sonic.framework的配置项增加设置other c flags: -fembed-bitcode,other c++ flags: -fembed-bitcode

@peak77
Copy link
Author

peak77 commented Aug 18, 2017

添加了还是不行,你看下添加的方式正确不?
e77277ae-d55b-4d8a-89e9-695987b34cc4
ebf8b633-e88c-4de3-9766-b5da10f5f2f7
PS:如果不对的话,方便发个图吗?更容易看懂些。谢谢

@peak77
Copy link
Author

peak77 commented Aug 23, 2017

@zyvincent 帮助下已解决。非常感谢
image

@zyvincent
Copy link
Contributor

真棒!

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