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

相关推荐
sakiko_6 小时前
Swift学习笔记42-SwiftUI的属性包装器(讲解+面试)
笔记·学习·ios·swiftui·swift
Patrick_Wilson14 小时前
iOS Safari 按钮点击无响应问题修复指南
前端·ios·safari
随遇丿而安15 小时前
第 3 周:UIButton 点了没反应,因为它默认就没有按压态
ios
Chester_199916 小时前
CSP202206C.角色授权
开发语言·数据结构·c++·蓝桥杯
Chester_19991 天前
CSP202203C.计算资源调度器
开发语言·数据结构·c++·蓝桥杯
学习星球1 天前
单调栈——从“找下一个更大的“到柱状图中的最大矩形
数据库·c++·算法·leetcode·xcode
思盛iOS签名上架1 天前
App苹果签名有什么作用?
macos·ios·cocoa
CocoaKier1 天前
Facebook广告后台收不到Adjust回传数据,我们排查了一个月终于找到了根因
ios·facebook
Canicer2 天前
从零部署 FunASR 语音识别服务
人工智能·语音识别·xcode
FairGuard手游加固3 天前
iOS 游戏加固技术解析:代码混淆、资源加密、内存保护与重签名检测
安全·游戏·macos·unity·ios·objective-c