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

Builder fails with Xcode 15 (worked around for now) #61

Open
lemonmojo opened this issue Sep 25, 2023 · 7 comments · Fixed by #62
Open

Builder fails with Xcode 15 (worked around for now) #61

lemonmojo opened this issue Sep 25, 2023 · 7 comments · Fixed by #62
Assignees
Labels
bug Something isn't working builder

Comments

@lemonmojo
Copy link
Member

Xcode 15 seems to have issues with symlinks when creating XCFrameworks.

The fix likely involves passing it absolute/resolved paths.

@lemonmojo
Copy link
Member Author

Workaround is now in place until an Xcode update which fixes the issue is out.

@lemonmojo
Copy link
Member Author

lemonmojo commented Sep 25, 2023

We could further improve the code by resolving symlinks on macOS using [NSString stringByResolvingSymlinksInPath].

For reference, here's a quick POC showing how to call ObjC from C#: https://github.com/lemonmojo/SimpleDotNETObjCInterop

There's now a string extension in the repo called ResolveSymlinks_AppleOnly which resolves symlinks using NSString APIs. It's not in use yet though.

@lemonmojo
Copy link
Member Author

Another problem here is that .NET 8 RC1's NativeAOT doesn't play nice with Xcode 15's new linker. See dotnet/runtime#92491.

As mentioned here, we worked around this by adding -ld_classic as an additional linker flag in the generated csproj for now.

We hope to be able to remove this once .NET 8 RC2 is out.

@lemonmojo
Copy link
Member Author

-ld_classic is not required with RC2 anymore so the workaround has been removed in e133610.

@lemonmojo
Copy link
Member Author

I haven't yet tested if Xcode 15.1 Beta fixes the symlink issue with xcodebuild. I'll check when 15.1 is released.

@lemonmojo lemonmojo changed the title Builder fails with Xcode 15 Builder fails with Xcode 15 (worked around for now) Nov 22, 2023
@lemonmojo
Copy link
Member Author

Still not fixed in Xcode 15.1

lemonmojo added a commit that referenced this issue Dec 15, 2023
@lemonmojo
Copy link
Member Author

Note to self: Test again with Xcode 16 Beta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working builder
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants