• React Native适配Xcode 15 iOS 17.0+


    iOS 17.0 Simulator(21A328)下载失败

    App Store 更新到 Xcode15 后,无法运行模拟器和真机。需要下载iOS 17对应的模拟器。Xcode中更新非常容易中断失败,可以在官网单独下载iOS 17模拟器文件,例如:iOS_17.0.1_Simulator_Runtime.dmg(7GB),官方下载链接:developer.apple.com/download/al…icon-default.png?t=N7T8https://link.juejin.cn/?target=https%3A%2F%2Fdeveloper.apple.com%2Fdownload%2Fall%2F%3Fq%3DXcode

    选择对应版本的 Simulator Runtime 下载即可,下载完成后执行如下命令进行安装:

    1. sudo xcode-select -s /Applications/Xcode.app
    2. xcodebuild -runFirstLaunch
    3. xcrun simctl runtime add "/Users/songlcy/Downloads/iOS_17.0.1_Simulator_Runtime.dmg"

    WkwebsiteDataStore: type argument ‘nw_proxy_config_t‘ is neither an Objective-C object nor a block type

    找到 WkwebsiteDataStore.h 文件,将 170000 修改为 180000 :

     Assertion failed: (false && "compact unwind compressed function offset doesn't fit in 24 bits"), function operator(), file Layout.cpp, line 5758.

    打开 Build Settings,找到 Other Linker Flags,在当下添加 -ld64

    react-native-fast-image

    修改 FFFastImageView.m 文件:

    1. diff --git a/node_modules/react-native-fast-image/ios/FastImage/FFFastImageView.m b/node_modules/react-native-fast-image/ios/FastImage/FFFastImageView.m
    2. index 9c0f1d3..e71f92f 100644
    3. --- a/node_modules/react-native-fast-image/ios/FastImage/FFFastImageView.m
    4. +++ b/node_modules/react-native-fast-image/ios/FastImage/FFFastImageView.m
    5. @@ -71,11 +71,11 @@ - (void)setImageColor:(UIColor *)imageColor {
    6. - (UIImage*)makeImage:(UIImage *)image withTint:(UIColor *)color {
    7. UIImage *newImage = [image imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
    8. - UIGraphicsBeginImageContextWithOptions(image.size, NO, newImage.scale);
    9. - [color set];
    10. - [newImage drawInRect:CGRectMake(0, 0, image.size.width, newImage.size.height)];
    11. - newImage = UIGraphicsGetImageFromCurrentImageContext();
    12. - UIGraphicsEndImageContext();
    13. + UIGraphicsImageRenderer *renderer = [[UIGraphicsImageRenderer alloc] initWithSize:image.size];
    14. + newImage = [renderer imageWithActions:^(UIGraphicsImageRendererContext * _Nonnull rendererContext) {
    15. + [color setFill];
    16. + [newImage drawInRect:CGRectMake(0, 0, image.size.width, newImage.size.height)];
    17. + }];
    18. return newImage;
    19. }

    --持续更新

  • 相关阅读:
    实验7 数据库编程
    linux系统Docker容器Dockerfile简单描述
    技术变现整体流程
    使用 Flet Python 框架构建 Markdown 编辑器 Flutter 应用程序
    Nginx代理MySQL的配置
    10-热点文章-定时计算
    nginx升级版本
    17. 电话号码的字母组合
    【Try to Hack】php命令执行和代码执行
    Mysql 索引基数与选择性
  • 原文地址:https://blog.csdn.net/u013718120/article/details/134281730