cfstring constant not pointer aligned 或者 dyld: Symbol not found: xxxx

解决: Build Settings -> Other Linker Flags 加入-ld64

UIGraphicsBeginImageContextWithOptions崩溃

YYText使用时会崩溃在UIGraphicsBeginImageContextWithOptions

参考:

UIGraphicsBeginImageContext Deprecated · Issue #984 · ibireme/YYText

Sandbox:rsync.sanba deny(1) file-write-create xxx

使用Xcode15新建项目后,pod 引入部分第三方会报上面的错误

解决:Build Settings搜索sandbox,把Build Options中的User Script Sandboxing改为NO

iOS 17 Simulator Runtime 下载失败

当大小为 7.1 GB 的 iOS 17 Simulator Runtime,遇到了不支持断点续传的 Xcode,哭晕在厕所好几次 。

xcode-select -s /Applications/Xcode.app
xcodebuild -runFirstLaunch
xcrun simctl runtime add "~/Downloads/iOS 17 Simulator Runtime.dmg"