Invalid CFBundleIdentifier '_SwiftUINavigationState' #111
Replies: 4 comments 11 replies
-
Are you using Tuist by any chance to build your application? There is a known issue (that I thought was fixed) when dealing with frameworks with underscores. If you are not using Tuist, then how are you integrating SwiftUINavigation into your project. FWIW I don't think this is a problem with the library because it is a pure SPM package, and so has no concept of a bundle identifier. There must be something else in your build settings that create the bundle identifier. |
Beta Was this translation helpful? Give feedback.
-
A similar issue appears here: facebook/facebook-ios-sdk#1897 Somebody observed that the issue reproduces when "a workspace that has a framework target and an application target." I suspect that Xcode will magically build SPM dependencies as frameworks when you have a situation where a workspace contains:
If Xcode embedded everything, it would have two copies of the same code. So instead it builds everything as frameworks so all of the code can play nice, using package names as the bundle identifiers. But it gets unhappy about the underscore during the build process:
And TestFlight ultimately rejects the app for the same reason. Unfortunately I do think this is something that should be fixed from swiftui-navigation's side. It's not unusual for Xcode to build apps and frameworks out of the same workspace, as both this and the Facebook issue demonstrate. I'm not sure how many people are already linking |
Beta Was this translation helpful? Give feedback.
-
Ok, if there is something we can do to help the situation we are certainly willing. However, can someone provide a project that demonstrates the problem for us? We would like to know that we are actually fixing the problem. |
Beta Was this translation helpful? Give feedback.
-
FWIW we're facing the same issue and the project structure described by @protonjohn mirrors our own workspace setup |
Beta Was this translation helpful? Give feedback.
-
After integrating CTA and swiftui-navigation into our app, I tried uploading it to testflight, but got the error:
Anyone got the same error?
Beta Was this translation helpful? Give feedback.
All reactions