WildCat's Blog

钝鸟先飞,大器晚成

Tech & Design enthusiast, helping to create a better world for everyone. Working, collaborating and innovating. Views are my own.


Xcode project: Enable the missing "Use iOS Bundle Identifier" for Catalyst targets

We have iOS projects created before Xcode 11.4 where Universal Purchase is available. As a result, the project may not have the Use iOS Bundle Identifier option for the Mac Catalyst target. This can lead to several issues. One key issue is that the Catalyst target contains an invalid Share Extension, which does not work at all. Another issue can be something like:

Mac catalyst embedded binary’s bundle identifier is not prefixed with the parent app’s bundle identifier.

There’s no obvious way to enable it.

After trying to search related configurations in project.pbxproj, I found a solution.

You can search for the keyword DERIVE_MACCATALYST_PRODUCT_BUNDLE_IDENTIFIER and set it to NO. After that, Xcode will show the checkbox.

更早的文章

Rethinking SwiftUI

SwiftUI has been generally available for almost one year since last summer. After some exploration, I would like to write some thoughts about SwiftUI.Is SwiftUI production ready?Unfortunately, my answer of this question should be “yes and no”, jus...…

继续阅读