使用 GYP 为 iOS 生成 Xcode 项目

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8972923/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 23:04:25  来源:igfitidea点击:

Generating Xcode project for iOS using GYP

iosxcodeproject-filesgyp

提问by user1165084

I have been trying to generate an Xcode project for an iOS app using GYP. I am able to generate the myapp.xcodeprojproject file but the settings are for macOS projects instead of the desired iOS project. I have set the following properties:

我一直在尝试使用 GYP 为 iOS 应用程序生成一个 Xcode 项目。我能够生成myapp.xcodeproj项目文件,但设置适用于 macOS 项目,而不是所需的 iOS 项目。我设置了以下属性:

'SDKROOT' : 'iphoneos4.3',
'ARCHS[sdk=iphoneos*]' : 'armv7',
'VALID_ARCHS' : 'armv6 armv7',
'VALID_ARCHS[sdk=iphoneos*]' : 'armv7',
'ONLY_ACTIVE_ARCH' : 'NO',
'IPHONEOS_DEPLOYMENT_TARGET' : '4.0',
'TARGETED_DEVICE_FAMILY' : '1/2',

Do I need to set something else?

我需要设置其他东西吗?