Skip to content
This repository has been archived by the owner on Oct 24, 2022. It is now read-only.

App not compiling on Mac M1/Monterey OS #31

Open
LAMike310 opened this issue Nov 28, 2021 · 5 comments
Open

App not compiling on Mac M1/Monterey OS #31

LAMike310 opened this issue Nov 28, 2021 · 5 comments

Comments

@LAMike310
Copy link

LAMike310 commented Nov 28, 2021

Hello Team Synonym,

I think I am doing something wrong with my install, I have tried to run the app on both my Desktop and external SSD drive, but have run into issues I can't seem to fix just searching Stack Overflow. The part where the app stops building gives this error:

The following build commands failed: CompileC /Users/michaelg/Library/Developer/Xcode/DerivedData/example-cbvqrnfardgmysaftpvirwecuxon/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-lightning.build/Objects-normal/x86_64/ReactNativeLightning-b42bb7e075fb38cee3a929d30335e88a.o /Volumes/SSD/Code/react-native-lightning/ios/ReactNativeLightning.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-lightning' from project 'Pods') (1 failure)

Any ideas on how to fix it? Here are my attempts to run it on both locations in my Mac:

https://youtu.be/OvOqW4ZU0f0
https://youtu.be/qLx7zyFH154

Thanks for building this library, hopefully I can use it as a base for more Synonym and Lightning Apps in the future

@Jasonvdb
Copy link
Collaborator

Hey @LAMike310, thanks for checking this out. Can you make these videos public or just unlisted? They're private right now.

@LAMike310
Copy link
Author

@Jasonvdb sorry about that, should be unlisted now!

@coreyphillips
Copy link
Collaborator

coreyphillips commented Nov 29, 2021

Hey @LAMike310. Unfortunately, I don't have an M1 to test on. However, I did upgrade the example project. Please let me know if the following two commands help resolve the issue.

  1. git clone https://github.com/synonymdev/react-native-lightning && cd react-native-lightning && yarn install
  2. yarn build && cd example && yarn install && cd ios && pod install && cd .. && npx react-native run-ios

@LAMike310
Copy link
Author

Thanks for updating the repo, I see that it's now in master @coreyphillips.

One problem on my end could be the location of where node is installed based on this question on SO. I'm going to get node installed properly and see if that can get the example to build on my machine.

@LAMike310
Copy link
Author

Forgot to include the SO question I mentioned:

https://stackoverflow.com/questions/66742033/phasescriptexecution-cp-user-error-in-react-native

I tried installing node directly on /usr/local for my M1, but ran into some issues since node dependencies not built for the x86_64 CPU architecture

I think the easiest solution might be to run the example app from an older Macbook Pro with an Intel chip inside, since that's what React Native plays the best with, if it is indeed the culprit.

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

No branches or pull requests

3 participants