所以會跳error: Could not locate device support files.

查了一下,發現有辦法只複製Xcode裡的DeviceSupport就可以繼續build上新的ios。
xcode10 - Which version of Xcode support iOS 12.2? - Stack Overflow
https://stackoverflow.com/questions/54876861/which-version-of-xcode-support-ios-12-2
1.所以到這裡來下載ios12用的DeiceSupport資料夾,然後貼到
/Applications/Xcode9.3.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

有人說不用特別下載也行,就把之前的最高版本(比如11.3)複製後改為12.0也可以。試過後的確也行。
2.接著先到unity裡,記得projectSetting->player裡的SDK版本要看一下,應該要跟xcode選一樣的 。選完之後就unity build出來。

3.點開unity build出來的xcode project,先按驚嘆號讓它自動修正一些warning。

4.接著就看到Base SDK(unity應該要跟這裡一樣)還有下面的ios development target有沒有出現12.0可以選(大部分網友都有),不過沒有的話就保持兩個一樣,然後按下build。也可以順利成功build上ios12的iphone。

查出 Mac 所使用的 macOS 版本 - Apple 支援
https://support.apple.com/zh-tw/HT201260
Building for Mobile - Unity Learn
https://learn.unity.com/tutorial/building-for-mobile#5c7f8528edbc2a002053b4a1
沒有留言:
張貼留言