I am attempting to determine what’s fallacious with constructing my react native app .. this occurs solely on iOS and Android works high quality.
So when i run:
npx react-native run-ios
I get fairly lengthy description however all of them are warnings besides these two:
Undefined symbols for structure x86_64:
"_GULLogBasic", referenced from:
_MLKLog in MLKitCommon(MLKLogger.o)
"_OBJC_CLASS_$_GDTCORTransport", referenced from:
objc-class-ref in MLKitCommon(MLKFirelogTransport.o)
"_OBJC_CLASS_$_GTMLogMininumLevelFilter", referenced from:
objc-class-ref in MLKitCommon(GIPLoggingReroutingGTMLogger.o)
"_OBJC_CLASS_$_GTMLogger", referenced from:
objc-class-ref in MLKitCommon(PHTInternalHeterodyneSyncer.o)
objc-class-ref in MLKitCommon(PHTHeterodyneSyncer.o)
objc-class-ref in MLKitCommon(GIPPseudonymousIDStore.o)
objc-class-ref in MLKitCommon(CCTLogOutputStream.o)
objc-class-ref in MLKitCommon(CCTClearcutUploader.o)
objc-class-ref in MLKitCommon(CCTClearcutMetaLogger.o)
objc-class-ref in MLKitCommon(CCTClearcutFileUtility.o)
...
"_OBJC_CLASS_$_GTMSessionCookieStorage", referenced from:
objc-class-ref in MLKitCommon(CCTClearcutUploader.o)
"_OBJC_CLASS_$_GTMSessionFetcher", referenced from:
objc-class-ref in MLKitCommon(CCTClearcutUploader.o)
"_OBJC_CLASS_$_GTMSessionFetcherService", referenced from:
objc-class-ref in MLKitCommon(PHTFlatFilePhenotype.o)
objc-class-ref in MLKitCommon(MLKModelDownloader.o)
objc-class-ref in MLKitVision(GMVCloudVisionClient.o)
"_OBJC_CLASS_$_GULCCComponent", referenced from:
objc-class-ref in MLKitCommon(MLKCustomModelManager.o)
"_OBJC_CLASS_$_GULCCComponentContainer", referenced from:
objc-class-ref in MLKitCommon(MLKContext.o)
objc-class-ref in MLKitCommon(MLKCustomModelManager.o)
"_OBJC_CLASS_$_GULCCComponentType", referenced from:
objc-class-ref in MLKitCommon(MLKModelManager.o)
objc-class-ref in MLKitCommon(MLKContext.o)
objc-class-ref in MLKitCommon(MLKCustomModelManager.o)
"_OBJC_CLASS_$_GULUserDefaults", referenced from:
objc-class-ref in MLKitCommon(MLKModelPreferencesManager.o)
objc-class-ref in MLKitCommon(MLKAnalyticsLogger.o)
objc-class-ref in MLKitCommon(MLKModelDownloader.o)
"_OBJC_CLASS_$_RCTBridge", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_RCTBundleURLProvider", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_METACLASS_$_GTMLogger", referenced from:
_OBJC_METACLASS_$_MLKITx_GIPLoggingReroutingGTMLogger in MLKitCommon(GIPLoggingReroutingGTMLogger.o)
"_RCTAppSetupDefaultRootView", referenced from:
-[AppDelegate application:didFinishLaunchingWithOptions:] in AppDelegate.o
"_RCTAppSetupPrepareApp", referenced from:
-[AppDelegate application:didFinishLaunchingWithOptions:] in AppDelegate.o
"_kGTMSessionFetcherStatusDomain", referenced from:
___91-[MLKITx_PHTInternalHeterodyneSyncer syncHoldingLockWithSyncedScopes:fetchReason:callback:]_block_invoke in MLKitCommon(PHTInternalHeterodyneSyncer.o)
___150-[MLKITx_PHTHeterodyneSyncer batchSyncWithAccounts:syncedScopes:fetchReason:throttlingCache:heterodyneSyncInfo:accountToAuthToken:lastError:callback:]_block_invoke in MLKitCommon(PHTHeterodyneSyncer.o)
___69-[MLKModelDownloader beginModelDownloadWithURL:modelInfo:conditions:]_block_invoke.285 in MLKitCommon(MLKModelDownloader.o)
___63-[MLKITx_GMVCloudVisionClient initWithCloudUri:apiKey:options:]_block_invoke in MLKitVision(GMVCloudVisionClient.o)
ld: image(s) not discovered for structure x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
2023-06-04 22:17:30.202 xcodebuild[58527:700921] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set through consumer default (DVTEnableCoreDevice=disabled)
--- xcodebuild: WARNING: Utilizing the primary of a number of matching locations:
{ platform:iOS Simulator, id:C98A10BC-CA1F-4950-876C-F0838CC39041, OS:16.4, title:iPhone 14 }
{ platform:iOS Simulator, id:C98A10BC-CA1F-4950-876C-F0838CC39041, OS:16.4, title:iPhone 14 }
** BUILD FAILED **
The next construct instructions failed:
Ld /Customers/dso/Library/Developer/Xcode/DerivedData/MyApp-arvxybtqruynjaclszenpgywswhk/Construct/Merchandise/Debug-iphonesimulator/MyApp.app/MyApp regular (in goal ‘MyApp’ from undertaking ‘MyApp’)
(1 failure)
Most of warning are additionally related to:
Debug-iphonesimulator/React-logger/libReact-logger.a, constructing for iOS Simulator-x86_64 however trying to hyperlink with file constructed for iOS Simulator-arm64
That is my first time creating and beginning iOS a part of react-native and I’ve tried a number of options however none of these labored.
that is my rn data (react-native data)
System:
OS: macOS 13.4
CPU: (8) arm64 Apple M1
Reminiscence: 80.06 MB / 8.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.14.2 - ~/.nvm/variations/node/v18.14.2/bin/node
Yarn: Not Discovered
npm: 9.5.0 - ~/.nvm/variations/node/v18.14.2/bin/npm
Watchman: 2023.05.22.00 - /decide/homebrew/bin/watchman
Managers:
CocoaPods: 1.12.1 - /Customers/dso/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4
Android SDK: Not Discovered
IDEs:
Android Studio: 2022.2 AI-222.4459.24.2221.10121639
Xcode: 14.3/14E222b - /usr/bin/xcodebuild
Languages:
Java: 11.0.19 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Discovered
react: 18.1.0 => 18.1.0
react-native: 0.70.6 => 0.70.6
react-native-macos: Not Discovered
npmGlobalPackages:
*react-native*: Not Discovered