1.找到Hyphenate.framework所在位置路徑: cd /Users/xinxin/Desktop/dgt/dgtApp/HyphenateFullSDK
2.運(yùn)行:lipo Hyphenate.framework/Hyphenate -thin armv7 -output Hyphenate_armv7
3.運(yùn)行后沒有輸出提示,直接運(yùn)行下一個(gè)命令:lipo Hyphenate.framework/Hyphenate -thin arm64 -output Hyphenate_arm64
4.運(yùn)行后一樣沒有輸出提示,直接運(yùn)行下一個(gè)命令:lipo -create Hyphenate_armv7 Hyphenate_arm64 -output Hyphenate
5.運(yùn)行后一樣沒有輸出提示,直接運(yùn)行最后一個(gè)命令:mv Hyphenate Hyphenate.framework/
6.運(yùn)行完畢后得到
得到的Hyphenate.framework就是最后的結(jié)果,拖進(jìn)工程,編譯打包上架。
注意最后得到的包必須真機(jī)編譯運(yùn)行,并且工程要設(shè)置編譯二進(jìn)制文件General->Embedded Bunaries.
lite 版本的跟這些步驟一樣的,只需要對(duì)應(yīng)改下名字,就不贅述了。
1. lipo HyphenateLite.framework/HyphenateLite -thin armv7 -output HyphenateLite_armv7
2. lipo HyphenateLite.framework/HyphenateLite -thin arm64 -output HyphenateLite_arm64
3. lipo -create HyphenateLite_armv7 HyphenateLite_arm64 -output HyphenateLite
4. mv HyphenateLite HyphenateLite.framework/