Xcode15+iOS17 adaptation and problems encountered

I updated Xcode15 today and encountered some problems. I will record them in the hope that everyone will avoid pitfalls.

1. iOS17 SDK installation failed

After the Xcode update is completed, the project always displays no fund iOS17 sdk. The prompts may differ depending on the project. After downloading according to the prompts, the installation fails. After trying several times, it still doesn't work. I went to the official website to check the situation. Apple has provided a solution . ;

solve:

Execute the following commands in the terminal:

# sudo xcode-select -s /Applications/Xcode.app 
# xcodebuild -runFirstLaunch
# xcrun simctl runtime add "~/Downloads/iOS_17_Simulator_Runtime.dmg"

Of course, the Internet is also one aspect;

Tips for success:

D: 40037F44-7F14-4FE3-B2A7-34EA5F24AC36 iOS (17.0 - 21A328) (Ready)

After this appears, you will be prompted for verification. Verification can be done by restarting Xcode.

2. Project compilation failed, prompting that the files in .a were added repeatedly.

I'm pretty sure the file wasn't added repeatedly,

solve:

Build Settings -> Other Linker Flags 中添加 -ld64

Just recompile.

Continuously updated. . .

Guess you like

Origin blog.csdn.net/PianZhideNanRen/article/details/133037418