由于 GoogleUserMessagingPlatform,使用 react-native 构建排毒失败?

Max*_*ral 1 cocoapods jestjs react-native react-native-ios detox

我无法让曾经工作过的 React-Native Detox 构建工作。错误似乎是这样开始的:

PhaseScriptExecution [CP]\ Copy\ XCFrameworks /my-project/ios/build/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/GoogleUserMessagingPlatform.build/Script-75B045B5FA23A64D503F12601136A594.sh (in target 'GoogleUserMessagingPlatform' from project 'Pods')
    cd /my-project/ios/Pods
    /bin/sh -c /my-project/ios/build/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/GoogleUserMessagingPlatform.build/Script-75B045B5FA23A64D503F12601136A594.sh
warning: [CP] Unable to find matching .xcframework slice in '/my-project/ios/Pods/GoogleUserMessagingPlatform/Frameworks/Release/UserMessagingPlatform.xcframework UserMessagingPlatform framework ios-armv7_arm64_arm64e ios-i386_x86_64-simulator' for the current build architectures (arm64 x86_64).
Run Code Online (Sandbox Code Playgroud)

然后最后失败了:

ld: warning: directory not found for option '-F/my-project/ios/build/Build/Products/Release-iphonesimulator/XCFrameworkIntermediates/UserMessagingPlatform'
ld: framework not found UserMessagingPlatform
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)

我正在使用最新的大多数东西 - RN 0.63.3、CocoaPods 1.10.0、XCode 12.1。

Max*_*ral 7

对我来说,修改 .detoxrc.json 构建命令以包含

EXCLUDED_ARCHS=arm64
Run Code Online (Sandbox Code Playgroud)

"build": "xcodebuild -workspace ios/MyProject.xcworkspace -scheme MyProject -configuration Release -sdk iphonesimulator -derivedDataPath ios/build EXCLUDED_ARCHS=arm64 DETOX=1",
Run Code Online (Sandbox Code Playgroud)