编译错误:Target specifies product type 'com.apple.product-type.tool', but there's no such product type for the 'iphonesimulator' platform
原因是没有指定合适的target类型。我发现我编译的target用的是macos的,所以自然不存在iphone的模拟器了。
解决办法,可以重新建立一个iPhone的target即可,比如single application
编译错误:Target specifies product type 'com.apple.product-type.tool', but there's no such product type for the 'iphonesimulator' platform
原因是没有指定合适的target类型。我发现我编译的target用的是macos的,所以自然不存在iphone的模拟器了。
解决办法,可以重新建立一个iPhone的target即可,比如single application