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

Cannot compile project due to LinkerFlag #174

Open
Mirza-Fardeen1 opened this issue Dec 7, 2023 · 7 comments
Open

Cannot compile project due to LinkerFlag #174

Mirza-Fardeen1 opened this issue Dec 7, 2023 · 7 comments
Assignees

Comments

@Mirza-Fardeen1
Copy link

I have cloned the latest project and installed all the dependencies but yet i cannot build the project successfully due to given error .

ld: framework 'CoreAudioTypes' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Running on Xcode : 15
node version : 18.18
OS : macOS Sonama 14

image
@Mirza-Fardeen
Copy link

@nklomp Can you please review this issue , Thanks

@nklomp
Copy link
Contributor

nklomp commented Jan 11, 2024

Sorry for not having provided a response yet.

@sanderPostma, could you pick up this one?

@Mirza-Fardeen
Copy link

Hi @nklomp @sanderPostma i wonder if there is any suggestion to solve this problem . I even tried building with Android studio for android and i am getting "Command PhaseScriptExecution failed with a nonzero exit code" and as i mentioned "linker command failed with exit code 1 (use -v to see invocation)" is the main problem that i cannot get rid of . Please let me know if there is any solution . Thank You

@sanderPostma
Copy link
Contributor

sanderPostma commented Jan 25, 2024

@Mirza-Fardeen
I am looking into the Mac / XCode issue.

If you want to try Android you can try the following, in the terminal:

nvm use lts/hydrogen
npm -g install yarn  (when not installed yet)
export JAVA_HOME=<path to JDK11>
export PATH=$JAVA_HOME/bin:$PATH
export ANDROID_HOME=<path to>/Android/Sdk
cd <to project root>
yarn install
npx expo run:android

@sanderPostma
Copy link
Contributor

@Mirza-Fardeen
I have built the current develop branch on our Mac and it builds without issues and the app launches ok in the emu.
However we are on XCode 14 because XCode 15 does not support macOS Montery. At the moment I cannot risk upgrading our Mac to macOS Ventura and see if everything works on XCode 15 or not.
What you can try is renaming your ios directory to ios.bak or something, download mine and unzip that one in there. Hopefully your XCode 15 can upgrade the project successfully.

@Mirza-Fardeen
Copy link

Hi @sanderPostma thank you for your reply , unfortunately i am getting the same result for android
Screenshot 2024-01-25 at 22 43 41

@sanderPostma
Copy link
Contributor

@Mirza-Fardeen
In the last screen shot I see the message "compileSdkVersion is not specified. Please add it to build.gradle"
That's odd because that's sitting on line 7 in the android/build.gradle file.
Can you please try command "git checkout ." ? (to rollback all changes to the repo default)
Then do "java --version" and double-check it returns "openjdk 11.0.x"
And finally do a "npx expo run:android" again
I just did a test on a clean linux system, no issues there but I had to make sure that in the Android Studio SDK manager the Android 13 Tiramisu was installed and in the "SDK Tools" tab "NDK (Side by side)"
(And I use the corretto-11.0.22 JDK, but if there are no errors about "jlink" on the Mac there is no need to switch.)

If the problems persist, please share the entire build log instead of a partial screen shot,

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

4 participants