Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to build for ios simulator arm64 #60

Open
vemarav opened this issue Mar 21, 2024 · 8 comments
Open

Not able to build for ios simulator arm64 #60

vemarav opened this issue Mar 21, 2024 · 8 comments

Comments

@vemarav
Copy link

vemarav commented Mar 21, 2024

Showing Recent Errors Only
Building for 'iOS-simulator', but linking in object file (/Users/vemarav/Developer/example/node_modules/react-native-fast-tflite/ios/TensorFlowLiteC.framework/TensorFlowLiteC) built for 'iOS'

@alexandreandriesse
Copy link

same problem

@metinaltinbas
Copy link

same here any solutions ?

@vemarav
Copy link
Author

vemarav commented Apr 6, 2024

This can be solved using ios and ios-simulator folders, and xcode will automatically pick it up.

cc: @mrousavy

@alexandreandriesse
Copy link

This can be solved using ios and ios-simulator folders, and xcode will automatically pick it up.

cc: @mrousavy

ok, but where ? What do you mean ios and iOS-simulator folder ? In node_modules ? The entirely codebase ?

@alexandreandriesse
Copy link

I tried to duplicate the folder ios of the react-native-fast-tflite node_module, and renamed it to "ios_simulator", but the build continue to fail.

@mrousavy
Copy link
Owner

mrousavy commented Apr 6, 2024

This can be solved using ios and ios-simulator folders, and xcode will automatically pick it up.

cc: @mrousavy

What exactly do you mean by that? If you have an idea, it would be great if you could submit a PR, as I tried to add iOS simulator support but I didn't manage to properly build the core TFLite library for simulators.

@mdeividas
Copy link

I managed to solve this issue using rosetta simulator. Mode details here.

cc// @alexandreandriesse

@whw
Copy link

whw commented May 8, 2024

MacBook Pro M1 Sonoma 14.4.1
Xcode 15.3
react-native-fast-tflite @ latest

Yeh I ended up getting hooked by this as well. @mdeividas @vemarav could you share more on what you did to get it working?

Things I tried:

  • Adding the extra config to the end of the Podfile (as specified by the SO answers)
  • Excluding arm64 architecture for iOS-Simulator in Build Settings inside XCode (this one is shaky because I don't have a ton of XCode experience)
  • Tried a separate ios-simulator folder, althoughwithout more xcode knowledge not sure how this was supposed to work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants