Stylianos Gakis
02/14/2024, 11:35 AMInvalid bundle structure. The "Iosapp.app/Frameworks/ourkmplibrary.framework/ourkmplibrary" binary file is not permitted. Your app cannot contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. For details, visit: https://developer.apple.com/documentation/bundleresources/placing_content_in_a_bundle
Does this ring a bell at all?
Trying to look up this issue, I am only finding this super old issue which is marked as "fixed" but I am not really sure what the fix here is.
And we are using isStatic = true too, which maybe we should not? I am not sure, the KMMBridge samples have it set to true so I did the same.
I also briefly discussed this here, but in my Xcode I can't quite find the place where I would even be able to edit this. In "Dependencies > General > Frameworks and Libraries > " I can see our library there, but I do not see an option to embed it or not, there's just no option there.Stylianos Gakis
02/14/2024, 12:41 PMisStatic = true seems to satisfy our CI, but I still feel like I am doing something else wrong somehowStylianos Gakis
02/15/2024, 7:57 AMSymbol not found: _OBJC_CLASS_$libraryNameSomeTypeInside when doing this.
Back to the drawing board, super confused what I am doing wrong here, after following the entire KMMBridge setup docs from start to finish.itshan
02/15/2024, 3:45 PMStylianos Gakis
02/15/2024, 3:51 PMbinary file is not permitted... error?
In both cases, those errors have happened either in CI or by my iOS colleague, so it was 100% fetching the library from GitHub url and not locally.
With that said, after some trial and error from my iOS colleague the Symbol not found: _OBJC_CLASS_$libraryNameSomeTypeInside error has disappeared, but I do not really know why it was there in the first place 🤷 And I still have not managed to figure out a way to make this work with isStatic = true 😅itshan
02/15/2024, 3:53 PMitshan
02/15/2024, 3:54 PMitshan
02/15/2024, 3:55 PMitshan
02/15/2024, 4:01 PMitshan
02/15/2024, 4:03 PMStylianos Gakis
02/15/2024, 4:03 PMitshan
02/15/2024, 4:07 PMStylianos Gakis
02/16/2024, 8:21 AMStylianos Gakis
02/22/2024, 2:04 PMisStatic = true on their build configuration.
If nobody has, maybe it’s just something on our end completely and I should stop asking around here 😅kpgalligan
02/22/2024, 5:23 PMkpgalligan
02/22/2024, 5:24 PMInvalid bundle structure. The "Iosapp.app/Frameworks/ourkmplibrary.framework/ourkmplibrary" binary file is not permitted. Your app cannot contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. For details, visit: https://developer.apple.com/documentation/bundleresources/placing_content_in_a_bundle
This path, Iosapp.app/Frameworks/ourkmplibrary.framework/ourkmplibrary, implies the framework is being embedded in the app, but it's a static framework, so it shouldn't work that way.kpgalligan
02/22/2024, 5:24 PMkpgalligan
02/22/2024, 5:25 PMkpgalligan
02/22/2024, 5:26 PMkpgalligan
02/22/2024, 5:27 PMbinary file is not permitted. Your app cannot contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles.
kpgalligan
02/22/2024, 5:29 PMStylianos Gakis
02/22/2024, 5:31 PMStylianos Gakis
02/22/2024, 5:32 PMPedro Piñera
03/10/2026, 1:28 PMPedro Piñera
03/10/2026, 1:28 PMitshan
03/10/2026, 1:31 PMkpgalligan
03/10/2026, 2:43 PMPedro Piñera
03/10/2026, 2:50 PMMaybe I'm just more familiar with Gradle/Android, but it feels like the average production Xcode project has much more custom config.It does. This is the reason why we built project generations years ago (i.e. abstract intricacies).
Pedro Piñera
03/10/2026, 2:51 PMOne of the projects we looked at recently uses bun (the JS config/runtime) to configure iOS through a mix of Tuist and custom scripts that results in a workspace, but also some SPM on the side. And it's a fairly new greenfield project. Kind of blew my mind.Do you have a link to it? If it's useful, I can put together a small project as a reference for how KMP could be setup with a simple Tuist generated project such that you don't need to deal with Xcode complexities.
kpgalligan
03/10/2026, 3:47 PMPedro Piñera
03/10/2026, 5:00 PMPedro Piñera
03/10/2026, 5:00 PMPedro Piñera
03/10/2026, 5:00 PM