struct icon indicating copy to clipboard operation
struct copied to clipboard

Working example Mac app project.yml would help people seeing "Invalid spec file. Project should have at least one configuration"

Open tomachinz opened this issue 7 years ago • 1 comments

New Issue Checklist

For users just starting out, a working project.yml file to create a mac app would be nice. Here is one I reverse engineered from a basic app setup in XCode:


version: 2.1.0 configurations: Debug: overrides: CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION: YES_AGGRESSIVE CLANG_WARN_UNGUARDED_AVAILABILITY: YES_AGGRESSIVE MACOSX_DEPLOYMENT_TARGET: '10.12' SDKROOT: macosx type: debug Release: overrides: CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION: YES_AGGRESSIVE CLANG_WARN_UNGUARDED_AVAILABILITY: YES_AGGRESSIVE MACOSX_DEPLOYMENT_TARGET: '10.12' SDKROOT: macosx type: release targets: MyExampleApp: sources: - MyExampleApp/Assets.xcassets - MyExampleApp/ViewController.m - MyExampleApp/main.m - MyExampleApp/AppDelegate.m i18n-resources: MyExampleApp type: ":application" platform: mac configuration: CODE_SIGN_ENTITLEMENTS: MyExampleApp/MyExampleApp.entitlements CODE_SIGN_STYLE: Automatic DEVELOPMENT_TEAM: 488XXXXXX7 INFOPLIST_FILE: MyExampleApp/Info.plist PRODUCT_BUNDLE_IDENTIFIER: tomachicorp.MyExampleApp MyExampleAppTests: sources: MyExampleAppTests/MyExampleAppTests.m type: ":bundle.unit-test" platform: mac configuration: CODE_SIGN_STYLE: Automatic DEVELOPMENT_TEAM: 488XXXXXX7 INFOPLIST_FILE: MyExampleAppTests/Info.plist PRODUCT_BUNDLE_IDENTIFIER: tomachicorp.MyExampleAppTests TEST_HOST: "$(BUILT_PRODUCTS_DIR)/MyExampleApp.app/Contents/MacOS/MyExampleApp" references: - MyExampleApp MyExampleAppUITests: sources: MyExampleAppUITests/MyExampleAppUITests.m type: ":bundle.ui-testing" platform: mac configuration: CODE_SIGN_STYLE: Automatic DEVELOPMENT_TEAM: 488XXXXXX7 INFOPLIST_FILE: MyExampleAppUITests/Info.plist PRODUCT_BUNDLE_IDENTIFIER: tomachicorp.MyExampleAppUITests TEST_TARGET_NAME: MyExampleApp references: - MyExampleApp

perhaps this could be added to one of: https://github.com/lyptt/struct/blob/master/res/target_config_profiles/platform_mac.yml https://github.com/lyptt/struct/wiki/Specfile-format:-v2.0

Struct version

struct -v
3.1.2

tomachinz avatar Jan 26 '18 17:01 tomachinz

Hey @tomachinz, sorry for the incredibly delayed reply. I agree this would be very useful, fancy creating a PR since you've found one that works?

lyptt avatar Oct 30 '18 13:10 lyptt