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
[BUG] bundle format is ambiguous (could be app or framework) #231
Comments
I found https://blog.inventic.eu/2015/03/os-x-codesign-failed-bundle-format-is-ambiguous-could-be-app-or-framework/ without trying that. Does this framework use symbolic links? I have some frameworks in use, but this would be the first with symbolic links. Are these necessary? |
Hi @AshStefanOltmann . This framework shouldn’t have any symbolic link but I might be wrong as it uses a project file to build the Have you tried adding the Just in case, I guess you’ve followed this tutorial to embed the framework. I wrote that a while ago, before the first M1 came out. I’m also thinking that this I've never seen that kind of error 🤔 |
I Use Kotlin Multiplatform 1.5.21 to build my shared xcframework which does not support arm64 - this will change with recently released 1.5.30, but for now I can only test Rosetta - and I will need to provide a Rosetta installation for non-M1 user of my app anyway. Also I do use async/await, so non-beta XCode can't compile my project right now. I will try to build the framework myself as you suggested. |
Same error as before. It's the resign step that fails. I have my own shared xcframework and also the Sentry.io framework in my project with "Embed & sign" - no issues there.
|
@AshStefanOltmann the xcframework contains a binary for arm64 (the M1). If not supported, could this be the issue? Is Flutter what you're using? I'm reading a lot of answers where people basically remove stuff from folders: https://www.gitmemory.com/issue/flutter-webrtc/flutter-webrtc/421/735307303 https://www.gitmemory.com/issue/flutter/flutter/77173/790272366 |
I don't know, maybe. Nice that you already provide one. I wait for Kotlin 1.5.30 to be broadly adopted until I can build my shared framework with it.
Nope, no flutter. I use Kotlin Multiplatform Mobile. I build my shared code module with that. This means I have a native XCode project with a native SwiftUI where I want to include your framework. |
@AshStefanOltmann I cannot test it myself because I don't have a M1. Have you tried what those links I shared above suggest? Technically it's a matter of making sure that the |
Did you fix the problem or is now a "won't fix" solution? |
@AshStefanOltmann i hadn’t gotten any response in a while and that’s why I closed it 🤷🏻♂️ Feel free to reopen and provide more information. I shared a possible solution in my previous comment |
@fermoya Your solution of removing the |
@AshStefanOltmann xcframeworks contain all possible symbols for every single platform supported by Apple. this seems to me as a Kotlin multi platform problem. I’m giving support to the required platforms |
Describe the bug
The compilation for "My Mac (Rosetta)" on MacBook M1 fails with "bundle format is ambiguous (could be app or framework)".
To Reproduce
I added the framework via manual install to my SwiftUI Multiplatform project.
It compiles for iOS, but fails for macOS.
Expected behavior
Compile.
Screenshots / Videos
If applicable, add screenshots to help explain your problem.
Environment:
The text was updated successfully, but these errors were encountered: