GENie icon indicating copy to clipboard operation
GENie copied to clipboard

xcode iOS WindowedApp project has invalid product type

Open attilaz opened this issue 6 years ago • 4 comments

For example https://github.com/bkaradzic/bgfx generated 'examples' project has a product type: 'com.apple.product-type.tool' which is unavailable for iOS (and tvOS ) projects.

It seems it is because this commit: https://github.com/bkaradzic/GENie/commit/d1a1025600264c7267aa5cf81a6a9f48c03ac3fc

SkipBundling should be used only when platform is 'macosx'.

attilaz avatar Dec 15 '18 20:12 attilaz

cc @Dentoid

bkaradzic avatar Dec 16 '18 01:12 bkaradzic

I had the same issue (with generated Xcode10 projects). My current workaround is to just patch the generated files with sed: sed -i "" -e "s/com.apple.product-type.tool/com.apple.product-type.application/g" .build/projects/xcode10-ios/MyProj.xcodeproj/project.pbxproj

KageKirin avatar Dec 18 '18 08:12 KageKirin

Sounds like my previous fix/addition needs some extra conditional. I'm veeeery swamped with things and can't look into this for a while, but it's likely fairly easy for anyone to fix. Sorry.

SonnyBonds avatar Dec 18 '18 08:12 SonnyBonds

Late to the party, but was going to come back and fix this. However, I'm not totally sure how to determine there's an ios build going on. ios doesn't seem to be either a valid platform nor an OS?

Also, while it of course would be nice if it'd automatically ignore it, wouldn't just not specifying SkipBundling for ios targets be a valid workaround?

Just trying to understand the problem and possible solution here.

SonnyBonds avatar May 04 '19 11:05 SonnyBonds