IOSOpenDev command line tool build error

Okay, that's why I searched all day on the Internet why this is happening. I installed iOSOpenDev XCode Templates and I opened a new command line tool tool and gave me this error:

target indicates the product type is "com.apple.product-type.tool", but there is no such product type for the iphoneos platform

Does anyone know how to fix this? thanks in advance.

+4
source share
1 answer

This should be a problem with the installation. Reinstall iOSOpenDev and check if there are errors in its installer log. I had the same problem and resolved it using the following two steps.

  1) xcode-select must point to the correct xcode location, for example run the following line in Terminal:
 $ sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer

 2) You must agree xcode license in Terminal
 $ sudo xcodebuild -license
 $ xcodebuild -license

After that, reinstall the tool and it should work.

+4
source

Source: https://habr.com/ru/post/1432159/


All Articles