`.bundle` explicitFileType Wrong in `.pbxproj`
adamkhazi opened this issue Β· comments
Adam Khazi commented
Context / What π΅οΈββοΈ
Adding a bundle in Xcode 12 Beta 2 and Xcode 11.5 will add a .bundle
reference under the Products
folder. This reference in the .pbxproj
will have explicitFileType = wrapper.cfbundle
. Xcodeproj sets this to explicitFileType = "wrapper.plug-in"
which is incorrect. We can see the git diff
of what Tuist might generate and what Xcode 11.5 might create below (from the fixture https://github.com/tuist/tuist/tree/master/fixtures/ios_app_with_framework_and_resources):
- A16B291CD4C238C56FCD434A /* StaticFramework2Resources.bundle */ = {isa = PBXFileReference; explicitFileType = "wrapper.plug-in"; includeInIndex = 0; path = StaticFramework2Resources.bundle; sourceTree = BUILT_PRODUCTS_DIR; };
+ A16B291CD4C238C56FCD434A /* StaticFramework2Resources.bundle */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = StaticFramework2Resources.bundle; sourceTree = BUILT_PRODUCTS_DIR; };
Proposal π
Change the value of bundle
inside Xcode.swift
to wrapper.cfbundle
.