Xcode 15和iOS 17 适配和问题

1 .Showing Recent Messages PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks /Users/mac/Library/Devel

把项目下Pods-App-Fremeworks.sh文件的

if [ -L "${source}" ]; then

echo "Symlinked..."

source="(readlink "{source}")"

fi

改为

if [ -L "${source}" ]; then

echo "Symlinked..."

source="(readlink -f "{source}")"

fi

2 .[Unknown process name] CGBitmapContextCreateImage: invalid context 0x281fa4cc0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.崩溃

崩溃方法在:

UIImage *YBIBSnapshotView(UIView *view) {

UIGraphicsBeginImageContextWithOptions(view.bounds.size, YES, [UIScreen mainScreen].scale);

view drawViewHierarchyInRect:view.bounds afterScreenUpdates:NO\]; UIImage \*image = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); // crash it return image; } 可改成: UIGraphicsImageRendererFormat \*format = \[\[UIGraphicsImageRendererFormat alloc\] init\]; format.opaque = YES; format.scale = \[UIScreen mainScreen\].scale; UIGraphicsImageRenderer \*renderer = \[\[UIGraphicsImageRenderer alloc\] initWithSize:view.bounds.size format:format\]; UIImage \*image = \[renderer imageWithActions:\^(UIGraphicsImageRendererContext \* _Nonnull rendererContext) { \[view drawViewHierarchyInRect:view.bounds afterScreenUpdates:NO\]; }\]; 3.SDK does not contain 'libarclite' at the path '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a'; try increasing the minimum deployment target 进入/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/文件夹,如果无arc文件夹就创建一个把 libarclite_iphonesimulator.a放回到arc文件夹 没这个文件的可以github搜索拿下来

相关推荐
WL_Aurora2 小时前
备战蓝桥杯国赛【Day 17】
算法·蓝桥杯
Daniel_Coder2 小时前
iOS Widget 开发-14:iOS 18 控制中心组件开发
ios·swift·widget·activitykit·widgetkit·控制中心组件
七牛云行业应用3 小时前
OpenAI Codex手机版上线实战:iOS/Android 5步配置远程控制指南(2026)
android·ios·智能手机
app开发工程师V帅5 小时前
Xcode 工程内引入工程、framework内引入framework、OC的framework引入swift 的framework等等
ide·macos·xcode
2501_915921435 小时前
使用Swift和Xcode创建简单iOS应用完整教程
ide·vscode·ios·个人开发·xcode·swift·敏捷流程
库奇噜啦呼5 小时前
【iOS】Spotify项目总结
ios·iphone
鹤卿1231 天前
OC UI ——UIGestureRecognizer 手势识别
ui·ios·objective-c
hhb_6181 天前
Swift技术难点梳理与实战案例解析
开发语言·ios·swift
MonkeyKing1 天前
iOS UICollectionView 高可用架构:复用、预加载、横向嵌套实战详解
ios