Preserve extra targets when running ns clean #10370
Unanswered
ericuldall
asked this question in
Q&A
Replies: 1 comment 2 replies
-
@ericuldall you can place your extra targets in
// extension.json
{
"frameworks": [
"WatchKit"
],
"targetBuildConfigurationProperties": {
"DEVELOPMENT_TEAM": "\"XXXXXX\"",
"CODE_SIGN_ENTITLEMENTS": "\"$(SRCROOT)/../../App_Resources/iOS/extensions/TestWatchOS/TestWatchOS.entitlements\"",
"CODE_SIGN_STYLE": "Automatic",
"PRODUCT_BUNDLE_IDENTIFIER": "org.nativescript.app.TestWatchOS",
"CLANG_ANALYZER_NONNULL": "YES",
"CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION": "YES_AGGRESSIVE",
"CLANG_CXX_LANGUAGE_STANDARD": "\"gnu++20\"",
"CLANG_ENABLE_OBJC_WEAK": "YES",
"CLANG_WARN_DOCUMENTATION_COMMENTS": "YES",
"CLANG_WARN_UNGUARDED_AVAILABILITY": "YES_AGGRESSIVE",
"COPY_PHASE_STRIP": "NO",
"CURRENT_PROJECT_VERSION": "1",
"DEBUG_INFORMATION_FORMAT": "\"dwarf-with-dsym\"",
"GCC_C_LANGUAGE_STANDARD": "gnu11",
"GCC_WARN_UNINITIALIZED_AUTOS": "YES_AGGRESSIVE",
"GENERATE_INFOPLIST_FILE": "YES",
"INFOPLIST_FILE": "../../App_Resources/iOS/extensions/TestWatchOS/Info.plist",
"INFOPLIST_KEY_CFBundleDisplayName": "TestWatchOS",
"INFOPLIST_KEY_NSHumanReadableCopyright": "\"Copyright 2023 NativeScript. All rights reserved.\"",
"IPHONEOS_DEPLOYMENT_TARGET": "16.4",
"MARKETING_VERSION": "1.0",
"MTL_ENABLE_DEBUG_INFO": "NO",
"MTL_FAST_MATH": "YES",
"PRODUCT_NAME": "\"$(TARGET_NAME)\"",
"SKIP_INSTALL": "YES",
"SUPPORTS_MACCATALYST": "YES",
"SWIFT_COMPILATION_MODE": "wholemodule",
"SWIFT_EMIT_LOC_STRINGS": "YES",
"SWIFT_OPTIMIZATION_LEVEL": "\"-O\"",
"SWIFT_VERSION": "5.0",
"TARGETED_DEVICE_FAMILY": "\"1,2\""
}
}
We also plan on improving the dx/flow of this in the future, though initially we'll just focus on documenting this in detail, given it's a one-time setup thing in most cases. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have created a new watchOS target associated with my app from xcode. Sometimes I need to run
ns clean
but doing so deletes my watchOS target.How do I configure the nativscript build to preserve my watchOS code?
Beta Was this translation helpful? Give feedback.
All reactions