iOS12 Xcode10正式版問題彙總以及新特性(持續更新中....)

一、手機IOS12GM版本,收不到正式版推送,能夠下載固件:https://ipsw.me/
iTunes 連接iPhone  按下【option+檢查版本更新!

二、iPhone尺寸,新增了xr、xs、xrmax

5.8英寸:1125 x2436@3x.pnghtml

iPhone XR6.1:828px x 1792@2x.png
6.5英寸:1242x2688@3x.png

http://www.javashuo.com/article/p-qlbgcdcv-cd.html
https://help.apple.com/app-store-connect/#/dev4e413fcb8
https://mp.weixin.qq.com/s/8hwfg64SA5BdxV8VkQOs7A

三、xcode10中 libstdc++.6.0.9.tbd 找不到

https://www.jianshu.com/p/cd27028b38abios

https://www.jianshu.com/p/b8b51d71064cc++

POD文件加入:
post_install do |installer|
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            # Fix libstdc++.6在Xcode10編譯報錯問題
            if target.name == "CDC"
                xcconfig_path = config.base_configuration_reference.real_path
                xcconfig = File.read(xcconfig_path)
                new_xcconfig = xcconfig.sub('stdc++.6', 'c++')
                
                File.open(xcconfig_path, "w") { |file| file << new_xcconfig }
            end
        end
    end
end

 目前親測有效的方法(感謝海森同窗  https://www.jianshu.com/p/8edf6f415877 ):xcode

<1>、打開真機路徑   /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/app

模擬器路徑: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/post

<2>、將libstdc++.6.0.9.tbd  libstdc++.6.tbd  libstdc++.tbd文件件複製到上面相應的路徑的路徑 ui

真機文件下載地址:http://pbdfw90tv.bkt.clouddn.com/%E7%9C%9F%E6%9C%BA%E6%96%87%E4%BB%B6.zipspa

模擬器文件下載地址:http://pbdfw90tv.bkt.clouddn.com/%E6%A8%A1%E6%8B%9F%E5%99%A8%E6%96%87%E4%BB%B6.zipcode

真機生效,模擬器未生效,
找到路徑/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/
將真機文件複製到此目錄。


四、Xcode12.0 真機包orm

http://pbdfw90tv.bkt.clouddn.com/12.0%20%2816A366%29.zip

五、報錯:Multiple commands produce '/Users/shaoguangbo/Library/Developer/Xcode/DerivedData/   

Xcode10 默認使用New Build System編譯,會嚴格解析各個文件的依賴關係,

編譯不過,能夠退回Legacy Build System

  Xcode -> File -> Workspace Settings

六、our app crashed in iOS9 which upload by Xcode 10 GM Seed

https://stackoverflow.com/questions/52364231/our-app-crashed-in-ios9-which-upload-by-xcode-10-gm-seed

暫時用xcode9打包吧!

七、TabBarItem錯誤偏移(iOS12.1)臨時解決方法:

[[UITabBar appearance] setTranslucent:NO];

八、

相關文章
相關標籤/搜索