I am growing a model new iOS/Android app and I wish to use a single code, so I made a decision to make use of ReactNative for my pourpouses, and I wish to construct myself the executable as an alternative of utilizing one thing like Expo for distant constructing, so I purchased a MacMini the place I related my Android and iOS bodily units (the place i will run my mission).
I am utilizing VisualStudioCode as IDE and did all of the passages to put in ReactNative (v0.73.5) and all the things goes properly, I’ve my base mission that runs completely utilizing
npm begin
and working each model on my units with out issues.
The issue got here when I attempt to add navigation-container in my mission; I adopted the information (https://reactnavigation.org/docs/getting-started/) and put in native stack navigator library too (https://reactnavigation.org/docs/hello-react-navigation) and write a easy code to robotically swap from mission begin (App.tsx) to a splash web page, like this:
import * as React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import SplashScreen from './screens/SplashScreen';
const Stack = createNativeStackNavigator();
perform App() {
return (
<NavigationContainer>
<Stack.Navigator>
<Stack.Display screen identify="Splash" part={SplashScreen} />
</Stack.Navigator>
</NavigationContainer>
);
}
export default App;
and run it utilizing npx react-native run-ios and npx react-native run-android.
On Android all the things works properly, and I land in my splash display screen as I supposed, however on iOS I can not even construct and run something: utilizing npx i obtained this error
** BUILD FAILED **
The next construct instructions failed:
Ld /Customers/******/Library/Developer/Xcode/DerivedData/ETMHOMECROSS-avqdpcaltzlgykcghamktxvqeiyk/Construct/Merchandise/Debug-iphoneos/RNScreens/RNScreens.framework/RNScreens regular (in goal 'RNScreens' from mission 'Pods')
(1 failure)
whereas utilizing npm begin and typing i the construct caught with no error whereas compiling
information Opening app on iOS...
information A dev server is already working for this mission on port 8081.
information Discovered Xcode workspace "ETMHOMECROSS.xcworkspace"
information Discovered booted iPhone 14 Growth , iPad
information Constructing (utilizing "xcodebuild -workspace ETMHOMECROSS.xcworkspace -configuration Debug -scheme ETMHOMECROSS -destination id=00008110-000255322130A01E")
information 💡 Tip: Just be sure you have arrange your improvement setting accurately, by working npx react-native physician. To learn extra about physician command go to: https://github.com/react-native-community/cli/blob/most important/packages/cli-doctor/README.md#physician
Command line invocation:
/Functions/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace ETMHOMECROSS.xcworkspace -configuration Debug -scheme ETMHOMECROSS -destination id=00008110-000255322130A01E
Consumer defaults from command line:
IDEPackageSupportUseBuiltinSCM = YES
Put together packages
ComputeTargetDependencyGraph
word: Constructing targets in dependency order
word: Goal dependency graph (61 targets)
Goal 'ETMHOMECROSS' in mission 'ETMHOMECROSS'
➜ Implicit dependency heading in the right direction 'Pods-ETMHOMECROSS' in mission 'Pods' by way of file 'Pods_ETMHOMECROSS.framework' in construct section 'Hyperlink Binary'
➜ Implicit dependency heading in the right direction 'CocoaAsyncSocket' in mission 'Pods' by way of choices '-framework CocoaAsyncSocket' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'React-CoreModules' in mission 'Pods' by way of choices '-framework CoreModules' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'DoubleConversion' in mission 'Pods' by way of choices '-framework DoubleConversion' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'React-RCTAnimation' in mission 'Pods' by way of choices '-framework RCTAnimation' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'React-RCTBlob' in mission 'Pods' by way of choices '-framework RCTBlob' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'React-RCTFabric' in mission 'Pods' by way of choices '-framework RCTFabric' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'React-RCTImage' in mission 'Pods' by way of choices '-framework RCTImage' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'React-RCTLinking' in mission 'Pods' by way of choices '-framework RCTLinking' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'React-RCTNetwork' in mission 'Pods' by way of choices '-framework RCTNetwork' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'React-RCTSettings' in mission 'Pods' by way of choices '-framework RCTSettings' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'React-RCTText' in mission 'Pods' by way of choices '-framework RCTText' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'RCTTypeSafety' in mission 'Pods' by way of choices '-framework RCTTypeSafety' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'React-RCTVibration' in mission 'Pods' by way of choices '-framework RCTVibration' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'RNCMaskedView' in mission 'Pods' by way of choices '-framework RNCMaskedView' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'RNGestureHandler' in mission 'Pods' by way of choices '-framework RNGestureHandler' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'RNReanimated' in mission 'Pods' by way of choices '-framework RNReanimated' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'RNScreens' in mission 'Pods' by way of choices '-framework RNScreens' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'React-Core' in mission 'Pods' by way of choices '-framework React' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'ReactCommon' in mission 'Pods' by way of choices '-framework ReactCommon' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'React-Codegen' in mission 'Pods' by way of choices '-framework React_Codegen' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'React-Cloth' in mission 'Pods' by way of choices '-framework React_Fabric' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'React-FabricImage' in mission 'Pods' by way of choices '-framework React_FabricImage' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'React-ImageManager' in mission 'Pods' by way of choices '-framework React_ImageManager' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'React-Mapbuffer' in mission 'Pods' by way of choices '-framework React_Mapbuffer' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'React-NativeModulesApple' in mission 'Pods' by way of choices '-framework React_NativeModulesApple' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'React-RCTAppDelegate' in mission 'Pods' by way of choices '-framework React_RCTAppDelegate' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'React-debug' in mission 'Pods' by way of choices '-framework React_debug' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'React-graphics' in mission 'Pods' by way of choices '-framework React_graphics' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'React-jserrorhandler' in mission 'Pods' by way of choices '-framework React_jserrorhandler' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'React-nativeconfig' in mission 'Pods' by way of choices '-framework React_nativeconfig' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'React-rendererdebug' in mission 'Pods' by way of choices '-framework React_rendererdebug' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'React-runtimescheduler' in mission 'Pods' by way of choices '-framework React_runtimescheduler' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'React-utils' in mission 'Pods' by way of choices '-framework React_utils' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'SocketRocket' in mission 'Pods' by way of choices '-framework SocketRocket' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'React-cxxreact' in mission 'Pods' by way of choices '-framework cxxreact' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'fmt' in mission 'Pods' by way of choices '-framework fmt' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'RCT-Folly' in mission 'Pods' by way of choices '-framework folly' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'glog' in mission 'Pods' by way of choices '-framework glog' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'React-jsi' in mission 'Pods' by way of choices '-framework jsi' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'React-jsinspector' in mission 'Pods' by way of choices '-framework jsinspector' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'React-jsiexecutor' in mission 'Pods' by way of choices '-framework jsireact' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'libevent' in mission 'Pods' by way of choices '-framework libevent' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'React-logger' in mission 'Pods' by way of choices '-framework logger' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'react-native-change-icon' in mission 'Pods' by way of choices '-framework react_native_change_icon' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'react-native-safe-area-context' in mission 'Pods' by way of choices '-framework react_native_safe_area_context' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'React-hermes' in mission 'Pods' by way of choices '-framework reacthermes' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'React-perflogger' in mission 'Pods' by way of choices '-framework reactperflogger' in construct setting 'OTHER_LDFLAGS'
➜ Implicit dependency heading in the right direction 'Yoga' in mission 'Pods' by way of
I feel I obtained some conflicts on Pods, however I can not get any information about what and the right way to resolve.
Any assist, additionally on procedures to put in dependencies in the suitable means, are welcome!
Thanks prematurely