安装:iOS开发 - XCode15 beta + iOS17 问题记录
新特性:苹果官方视频,xcode15新特性
一、安装:xcode15和ios17sdk分开了,所以需要通过下面命令安装一下
xcode-select -s /Applications/Xcode-beta.app
xcodebuild -runFirstLaunch
xcrun simctl runtime add "~/Downloads/iOS_17_beta_Simulator_Runtime.dmg"
二、问题
1.macOS 13 git ssh失效
https://droidwin.com/ssh-not-working-in-macos-ventura-fix/
在路径"/etc/ssh"(或"/private/etc/ssh",前者是快捷方式)路径下找到ssh_config文件。将其打开,在最后添加两行(保存的时候需要提供权限,不会终端权限的建议使用Visual Sutdio Code,保存的时候会提示输密码)
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa
2.xcode15编译问题
- 【Library ‘xxx’ not found】
iconv是系统库,升级了13之后,可能2.4.0版本不支持了,搜索全局发现有第三方库引入了指定版本的iconv
解决方法是查看第三方库是否有不引入这个库的新版本,或者直接手动将iconv.2.4.0修改为不指定版本的iconv - 【Unable to execute command: Segmentation fault: 11】
https://developer.apple.com/forums/thread/731089
在Build Settings中的Other Linker Flags中添加-ld64可解决