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

Building for iOS / iphonesimulator #584

Open
TheVitya opened this issue Dec 14, 2024 · 4 comments
Open

Building for iOS / iphonesimulator #584

TheVitya opened this issue Dec 14, 2024 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@TheVitya
Copy link

Hello,

First of all, I want to say that I really like the project; it’s incredibly helpful to me.

I am trying to build a simple library using the Xcode generator. I haven’t seen any remarks or notices suggesting that corrosion does not support this setup.

However, when I try to build it using the build.sh script, I encounter a "Permission Denied" error. The same error occurs when I attempt to build it directly in Xcode.

Screenshot 2024-12-14 at 13 44 37

I suspect this issue might be related to the combination of Xcode and Cargo because running the scripts manually from the terminal does not result in the same error.

I’m not sure what else to try at this point, as I’ve explored nearly every idea that came to mind.

I would greatly appreciate it if you could point me in the right direction to resolve this issue.

Thank you in advance for your help!

Repo: https://github.com/TheVitya/corrosion

@jschwe
Copy link
Collaborator

jschwe commented Dec 14, 2024

Do you have the same problem when using Xcode and building for mac?
Corrosion does test in CI that using the XCode Generator works, but I'm not sure if anyone has used corrosion to build for iOS before.

@TheVitya
Copy link
Author

Yes, mac works, from Xcode and also using the build script. I have added the mac build lines to the build.sh file.

@TheVitya
Copy link
Author

The initial error seems to be fixed, the generated SDKROOT was a bit faulty, but I think that was my fault. Now when I am trying to build it I get the following error: ld: library 'System' not found. I have seen that there is a related issue to that, but the paths that are mentioned there seems good. I think you would get the same error if you try it, the repo is updated.

cmake: 3.31.2
cargo: 1.83.0
mac: 14.5 (23F79)
rustc: 1.83.0

@jschwe jschwe changed the title Building using Xcode generator Building for iOS / iphonesimulator Dec 18, 2024
@jschwe jschwe added enhancement New feature or request help wanted Extra attention is needed labels Dec 18, 2024
@jschwe
Copy link
Collaborator

jschwe commented Dec 18, 2024

I currently don't have any time to investigate this myself, but PRs are welcome. As I mentioned, I'm not aware of anyone using corrosion for iOS development right now, so this might require some investigation.

ld: library 'System' not found

You might need to do something similar as here for MacOS < 13 and set LIBRARY_PATH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants