构建失败,因为react-native-reanimated



我安装了react-native-reanimated,但安装后我无法运行应用程序,它一直给我以下错误。这真的很令人沮丧。如果有人能指导我,我将非常感激。

/Users/rawandmajeed/Desktop/tmp/ddan/node_modules/react-native/Libraries/NativeAnimation/RCTNativeAnimatedModule.mm:221:33: error: expected a type
/Users/rawandmajeed/Desktop/tmp/ddan/node_modules/react-native/Libraries/NativeAnimation/RCTNativeAnimatedModule.mm:224:76: error: property 'nativeEventPath' not found on object of type '__strong id'
eventMappingDict[@"nativeEventPath"] = RCTConvertVecToArray(eventMapping.nativeEventPath());
     ^
/Users/rawandmajeed/Desktop/tmp/ddan/node_modules/react-native/Libraries/NativeAnimation/RCTNativeAnimatedModule.mm:226:20: error: property 'animatedValueTag' not found on object of type '__strong id'
if (eventMapping.animatedValueTag()) {
^
/Users/rawandmajeed/Desktop/tmp/ddan/node_modules/react-native/Libraries/NativeAnimation/RCTNativeAnimatedModule.mm:227:61: error: property 'animatedValueTag' not found on object of type '__strong id'
eventMappingDict[@"animatedValueTag"] = @(*eventMapping.animatedValueTag());
^

** BUILD FAILED **

The following build commands failed:
CompileC /Users/rawandmajeed/Library/Developer/Xcode/DerivedData/ddan-bfgjptmiribfbdbjbkbxincjrevk/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-RCTVibration.build/Objects-normal/x86_64/RCTVibration.o /Users/rawandmajeed/Desktop/tmp/ddan/node_modules/react-native/Libraries/Vibration/RCTVibration.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler
CompileC /Users/rawandmajeed/Library/Developer/Xcode/DerivedData/ddan-bfgjptmiribfbdbjbkbxincjrevk/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-RCTLinking.build/Objects-normal/x86_64/RCTLinkingManager.o /Users/rawandmajeed/Desktop/tmp/ddan/node_modules/react-native/Libraries/LinkingIOS/RCTLinkingManager.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)**

我发现(react-native- Reanimated的新版本是Reanimated 2)不能很好地与react native V 0.66.0一起工作,所以我将我的react native版本更改为0.64.0,我还更改了Flipper-Folly,,Flipper-RSocket将这行添加到Podfile

use_flipper!({ 'Flipper-Folly' => '2.5.3', 'Flipper' => '0.87.0','Flipper-RSocket' => '1.3.1' })

安装pod后

一切正常

最新更新