美文网首页
xcode12.5 ReactNative bug汇总

xcode12.5 ReactNative bug汇总

作者: 半个木头人 | 来源:发表于2021-05-07 16:16 被阅读0次

    react-native xcode12.5 bug汇总
    issue:
    https://github.com/facebook/react-native/issues/31179#issuecomment-829536845

    https://github.com/facebook/react-native/issues/31480

    1.# Swift._ArrayBuffer._copyContents on Xcode
    https://stackoverflow.com/questions/67311980/swift-arraybuffer-copycontents-on-xcode

    清理重新下载脚本:

    !/usr/bin/env bash

    echo "Cleaning all the things";
    watchman watch-del-all;
    rm -rf node_modules;
    rm -rf TMPDIR/react-* rm -rfTMPDIR/npm-*
    cd ios
    rm -rf Pods;
    rm -rf Podfile.lock;
    rm -rf build;
    npm cache clean --force
    pod cache clean --all
    cd ../android
    rm -rf build
    cd ..
    rm -rf ~/Library/Developer/Xcode/DerivedData

    echo "Installing things again";
    npm install;
    cd ios
    pod install
    cd ..;

    npm start -- --reset-cache;

    2.Folly

    use_flipper!({
    'Flipper' => '0.85.0',
    'Flipper-DoubleConversion' => '1.1.7',
    'Flipper-Folly' => '2.5.3',
    'Flipper-Glog' => '0.3.6',
    'Flipper-PeerTalk' => '0.0.4',
    'Flipper-RSocket' => '1.3.1',
    'FlipperKit' => '0.75.1',
    'FlipperKit/Core' => '0.75.1',
    'FlipperKit/CppBridge' => '0.75.1',
    'FlipperKit/FBCxxFollyDynamicConvert' => '0.75.1',
    'FlipperKit/FBDefines' => '0.75.1',
    'FlipperKit/FKPortForwarding' => '0.75.1',
    'FlipperKit/FlipperKitHighlightOverlay' => '0.75.1',
    'FlipperKit/FlipperKitLayoutPlugin' => '0.75.1',
    'FlipperKit/FlipperKitLayoutTextSearchable' => '0.75.1',
    'FlipperKit/FlipperKitNetworkPlugin' => '0.75.1',
    'FlipperKit/FlipperKitReactPlugin' => '0.75.1',
    'FlipperKit/FlipperKitUserDefaultsPlugin' => '0.75.1',
    'FlipperKit/SKIOSNetworkPlugin' => '0.75.1',
    }) # should match the version of your Flipper client app

    1. lottie
      升级到"lottie-react-native": "^4.0.2",

    4.Swift._ArrayBuffer._copyContents...

    https://github.com/danielgindi/Charts/issues/4636

    https://github.com/Iterable/react-native-sdk/issues/86

    Hi all, I apologize for the delays in fixing this. We think we have a fix which is as follows:

    open the iOS project/workspace project file
    select the application target on the left side of the project filee
    go to the Build Settings tab
    toggle Levels on
    search for Library Search Paths
    double click the project level text box that applies to both build configurations
    remove "(TOOLCHAIN_DIR)/usr/lib/swift-5.0/(PLATFORM_NAME)" (NOTE: not the .../lib/swift/... entry; that's the one that's needed!)
    We've tested this on our minimal project that reproduced this issue, and archiving was successful, with the default React Native 0.63 project (and a blank Swift file and bridging header).

    Please let us know if this works, and if this does NOT work, please file a ticket with your CSM so we can diagnose your specific setup.

    Lastly, I'd like to add my personal apology; I was the primary driver of trying to solve this issue, and any delays were purely on me, not anyone else at Iterable.

    相关文章

      网友评论

          本文标题:xcode12.5 ReactNative bug汇总

          本文链接:https://www.haomeiwen.com/subject/nztedltx.html