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搜索拿下来

相关推荐
茶底世界之下8 小时前
窗边白雏菊与旧书:用 Awaking 留住一束暖光
ios·app·产品
茶底世界之下1 天前
阴天海边的蓝船:用 Awaking 把灰蓝调成清亮主角
ios·app·产品
Digitally1 天前
如何将 iPhone 备份到 iCloud?
ios
传奇开心果编程2 天前
【Flutter踩坑排雷】第19课:路由硬编码坑|字符串路由书写错误,页面跳转失败排查
android·flutter·ios·移动开发·跨平台·ui框架·声明式ui
茶底世界之下2 天前
雨后街口的斑马线:用 Awaking 把颜色让给光与步伐
ios·app·产品
十二3 天前
【洛谷题解】P1083 [NOIP 2012 提高组] 借教室(二分答案 + 差分)
数据结构·c++·算法·蓝桥杯
茶底世界之下3 天前
晨雾河岸的旧书摊:用 Awaking 给木色一点暖光
ios·app·产品
90后的晨仔3 天前
在 macOS 27 上运行 Xcode 26
ios
青少儿编程课堂4 天前
蓝桥杯青少组省考(11/9报名截止·11/22开考)+电子学会图形化考级+信息素养大赛:校园极速跑酷闯关解析
蓝桥杯·scratch·图形化编程·信息素养大赛·电子学会考级
茶底世界之下4 天前
山间站台不必转暖:用 Awaking 留住冷光与红箱
ios·app·产品