xcode12.5 ReactNative bug汇总

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.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容