a7medev / react-native-ml-kit

React Native On-Device Machine Learning w/ Google ML Kit
MIT License
342 stars 55 forks source link

BUILD FAILED on IOS #10

Closed taatiq882 closed 1 year ago

taatiq882 commented 2 years ago

using on M1 Mac

Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening mustaqbill.xcworkspace. Command line invocation: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace mustaqbill.xcworkspace -configuration Debug -scheme mustaqbill -destination id=12D92B4A-96CD-4871-96FD-9C0A5B7FD54C

User defaults from command line: IDEPackageSupportUseBuiltinSCM = YES

note: Using new build system note: Planning Analyze workspace

Create build description Build description signature: f4aa7eb76e1c41b541f9b546ae266813 Build description path: /Users/talhaatiq/Library/Developer/Xcode/DerivedData/mustaqbill-fhemmipxsgoadjbxflibshapgaaz/Build/Intermediates.noindex/XCBuildData/f4aa7eb76e1c41b541f9b546ae266813-desc.xcbuild

note: Build preparation complete note: Building targets in dependency order /Users/talhaatiq/Documents/GitHub/P103-Mstqbl-App/ios/mustaqbill.xcodeproj: error: The linked library 'libPods-mustaqbill.a' is missing one or more architectures required by this target: x86_64. (in target 'mustaqbill' from project 'mustaqbill')

2022-06-29 18:09:26.542 xcodebuild[12083:734655] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore 2022-06-29 18:09:26.542 xcodebuild[12083:734655] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore BUILD FAILED

a7medev commented 2 years ago

Hey @taatiq882, thanks for waiting! I wonder what React Native ML Kit packages and versions you have? Also, it would be helpful to provide the npx react-native info output so I can get more context.

a7medev commented 2 years ago

Hey there! I tried creating a new app and installing all RN ML Kit packages and running it on my M1 Mac but it seems like GoogleMLKit for iOS doesn't yet support Apple Silicon, so we will have to wait until Google supports it. You can follow the status of Apple Silicon support for GoogleMLKit iOS here.

efstathiosntonas commented 9 months ago

It's been almost a year and no Apple Silicon support yet :/

a7medev commented 9 months ago

@efstathiosntonas I'm running it on an M1 machine, did you try upgrading to the latest versions of RN ML Kit?

efstathiosntonas commented 9 months ago

@a7medev I have to install rosetta for it to work which I don’t want.