升级到React Native 0.70导致iOS上的依赖项循环错误

g9icjywg  于 2022-12-01  发布在  iOS
关注(0)|答案(1)|浏览(191)

在React Native升级助手中仔细地遵循the steps并升级到0.70后,我无法从xcode或yarn ios进行构建。
Cycle in dependencies between targets 'RNReanimated' and 'Pods-myproj'; building could produce unreliable results.
我尝试过各种方法,包括分解pod,清理项目/派生数据,交换旧/新构建系统,甚至在xcode中手动删除目标依赖项,但问题仍然存在(在最后一种情况下,它只是显示了一个不同的循环依赖项)。在升级到React Native 0.70时,有人遇到过这种情况吗?
错误全文:

Cycle in dependencies between targets 'RNReanimated' and 'Pods-myproj'; building could produce unreliable results.
Cycle path: RNReanimated → myproj → Pods-myproj → RNReanimated
Cycle details:
→ Target 'RNReanimated': Libtool /Users/denyskniazhev/Library/Developer/Xcode/DerivedData/myproj-chxzpwxxfrrttoddglozfoottfdh/Build/Products/Debug-iphonesimulator/RNReanimated/libRNReanimated.a normal
○ Target 'RNReanimated' has target dependency on Target 'FBReactNativeSpec'
○ That command depends on command in Target 'FBReactNativeSpec': script phase “[CP-User] Generate Specs”
○ That command depends on command in Target 'myproj': script phase “Bundle React Native code and images”
→ Target 'myproj' has target dependency on Target 'Pods-myproj'
→ Target 'Pods-myproj' has compile command with input '/Users/denyskniazhev/myproj/ios/Pods/Target Support Files/Pods-myproj/Pods-myproj-dummy.m'

Raw dependency cycle trace:

target:  ->

node: <all> ->

command: <all> ->

node: /Users/denyskniazhev/Library/Developer/Xcode/DerivedData/myproj-chxzpwxxfrrttoddglozfoottfdh/Build/Products/Debug-iphonesimulator/RNReanimated/libRNReanimated.a ->

command: target-RNReanimated-8699adb1dd336b26511df848a716bd4253784ff6d1a0a1acaedc06a9f9e94921-:Debug:Libtool /Users/denyskniazhev/Library/Developer/Xcode/DerivedData/myproj-chxzpwxxfrrttoddglozfoottfdh/Build/Products/Debug-iphonesimulator/RNReanimated/libRNReanimated.a normal ->

node: /Users/denyskniazhev/Library/Developer/Xcode/DerivedData/myproj-chxzpwxxfrrttoddglozfoottfdh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RNReanimated.build/Objects-normal/x86_64/AnimatedSensorModule.o ->

command: target-RNReanimated-8699adb1dd336b26511df848a716bd4253784ff6d1a0a1acaedc06a9f9e94921-:Debug:CompileC /Users/denyskniazhev/Library/Developer/Xcode/DerivedData/myproj-chxzpwxxfrrttoddglozfoottfdh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RNReanimated.build/Objects-normal/x86_64/AnimatedSensorModule.o /Users/denyskniazhev/myproj/node_modules/react-native-reanimated/Common/cpp/AnimatedSensor/AnimatedSensorModule.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler ->

node: <target-RNReanimated-8699adb1dd336b26511df848a716bd4253784ff6d1a0a1acaedc06a9f9e94921--begin-compiling> ->

command: Gate target-RNReanimated-8699adb1dd336b26511df848a716bd4253784ff6d1a0a1acaedc06a9f9e94921--begin-compiling ->

CYCLE POINT ->

node: <target-FBReactNativeSpec-8699adb1dd336b26511df848a716bd42d8e73feadee6a8e5c14524fc300acaed--modules-ready> ->

command: Gate target-FBReactNativeSpec-8699adb1dd336b26511df848a716bd42d8e73feadee6a8e5c14524fc300acaed--modules-ready ->

node: /Users/denyskniazhev/Library/Developer/Xcode/DerivedData/myproj-chxzpwxxfrrttoddglozfoottfdh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/DerivedSources/codegen-FBReactNativeSpec.log ->

command: target-FBReactNativeSpec-8699adb1dd336b26511df848a716bd42d8e73feadee6a8e5c14524fc300acaed-:Debug:PhaseScriptExecution [CP-User] Generate Specs /Users/denyskniazhev/Library/Developer/Xcode/DerivedData/myproj-chxzpwxxfrrttoddglozfoottfdh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-46EB2E00024690.sh ->

node: /Users/denyskniazhev/myproj/ios/.xcode.env.local/ ->

directoryTreeSignature: 2 ->

directoryContents: /Users/denyskniazhev/myproj/ios/.xcode.env.local ->

node: /Users/denyskniazhev/myproj/ios/.xcode.env.local ->

command: target-myproj-31124c55eae76d2f6224153cd522b4b97ceb6b36bcfc2fb90f69ac96de4975d6-:Debug:PhaseScriptExecution Bundle React Native code and images /Users/denyskniazhev/Library/Developer/Xcode/DerivedData/myproj-chxzpwxxfrrttoddglozfoottfdh/Build/Intermediates.noindex/myproj.build/Debug-iphonesimulator/myproj.build/Script-00DD1BFF1BD5951E006B06BC.sh ->

node: /Users/denyskniazhev/Library/Developer/Xcode/DerivedData/myproj-chxzpwxxfrrttoddglozfoottfdh/Build/Intermediates.noindex/myproj.build/Debug-iphonesimulator/myproj.build/Script-00DD1BFF1BD5951E006B06BC.sh ->

command: target-myproj-31124c55eae76d2f6224153cd522b4b97ceb6b36bcfc2fb90f69ac96de4975d6-:Debug:WriteAuxiliaryFile /Users/denyskniazhev/Library/Developer/Xcode/DerivedData/myproj-chxzpwxxfrrttoddglozfoottfdh/Build/Intermediates.noindex/myproj.build/Debug-iphonesimulator/myproj.build/Script-00DD1BFF1BD5951E006B06BC.sh ->

node: <target-myproj-31124c55eae76d2f6224153cd522b4b97ceb6b36bcfc2fb90f69ac96de4975d6--entry> ->

command: Gate target-myproj-31124c55eae76d2f6224153cd522b4b97ceb6b36bcfc2fb90f69ac96de4975d6--entry ->

node: <target-Pods-myproj-8699adb1dd336b26511df848a716bd427e062cc62f6a1d52d742a11ac20f0458--end> ->

command: Gate target-Pods-myproj-8699adb1dd336b26511df848a716bd427e062cc62f6a1d52d742a11ac20f0458--end ->

node: /Users/denyskniazhev/Library/Developer/Xcode/DerivedData/myproj-chxzpwxxfrrttoddglozfoottfdh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Pods-myproj.build/Objects-normal/x86_64/Pods-myproj-dummy.o ->

command: target-Pods-myproj-8699adb1dd336b26511df848a716bd427e062cc62f6a1d52d742a11ac20f0458-:Debug:CompileC /Users/denyskniazhev/Library/Developer/Xcode/DerivedData/myproj-chxzpwxxfrrttoddglozfoottfdh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Pods-myproj.build/Objects-normal/x86_64/Pods-myproj-dummy.o /Users/denyskniazhev/myproj/ios/Pods/Target Support Files/Pods-myproj/Pods-myproj-dummy.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler ->

node: <target-Pods-myproj-8699adb1dd336b26511df848a716bd427e062cc62f6a1d52d742a11ac20f0458--begin-compiling> ->

command: Gate target-Pods-myproj-8699adb1dd336b26511df848a716bd427e062cc62f6a1d52d742a11ac20f0458--begin-compiling ->

node: <target-FBReactNativeSpec-8699adb1dd336b26511df848a716bd42d8e73feadee6a8e5c14524fc300acaed--modules-ready>

我已经打开了一个ticket,但它还没有任何活动。

cbjzeqam

cbjzeqam1#

使用以上版本或最新版本的React Native尝试此操作
npxReact原生资产

相关问题