1.关闭三方sdk中的 bitcode
xcrun bitcode_strip -r [source path] -o [destination path]
例1
xcrun bitcode_strip Runner.app/Frameworks/Flutter.framework/Flutter -r -o Runner.app/Frameworks/Flutter.framework/Flutter
例2
xcrun bitcode_strip -r /Users/wang-xcx/Qno-iOS-source/Pods/Hyphenate/Hyphenate.framework/Hyphenate -o /Users/wang-xcx/Qno-iOS-source/Pods/Hyphenate/Hyphenate.framework/Hyphenate
2.查询sdk 里包含的架构
lipo -info ImSDK_Plus.framework/ImSDK_Plus
移除掉 x86_64 架构
lipo -remove x86_64 ImSDK_Plus.framework/ImSDK_Plus -o ImSDK_Plus.framework/ImSDK_Plus
3.配置git代理
3.1.查看代理
git config —global http.proxy
显示localhost:1080
3.2.设置代理
git config —global http.proxy “localhost:49342”
3.3.取消代理
git config —global —unset http.proxy
4.查询项目里的类
4.1方式一:
grep -r UIWebView .
4.2方式二:
find . -type f | grep -e ".a" -e ".framework" | xargs grep -s UIWebView
5.ARC兼容MRC
-fno-objc-arc
6.PCH was compiled with module cache path XXXX, but the path is currently XXXX 解决方法
rm -rf ~/Library/Developer/Xcode/DerivedData/
网友评论