@elumixor/devkit 0.10.0 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/apple.ts +4 -1
package/package.json
CHANGED
package/src/apple.ts
CHANGED
|
@@ -41,8 +41,11 @@ export async function xcodeBuild(options: XcodeBuild & { destination?: string })
|
|
|
41
41
|
const derived = resolve(root, options.derivedDataDir ?? `build/${options.scheme}`);
|
|
42
42
|
const destination = options.destination ?? `generic/platform=${sdk === "watchsimulator" ? "watchOS" : "iOS"} Simulator`;
|
|
43
43
|
|
|
44
|
+
// The destination says which SDK each target compiles against, and `-sdk` would override that
|
|
45
|
+
// for all of them at once — which is how an iPhone build of a project that embeds a watch app
|
|
46
|
+
// ends up compiling the watch widget for iOS and failing on its deployment target.
|
|
44
47
|
await $`xcodebuild -project ${project} -scheme ${options.scheme} -configuration ${configuration} \
|
|
45
|
-
-
|
|
48
|
+
-destination ${destination} -derivedDataPath ${derived} \
|
|
46
49
|
CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO build`;
|
|
47
50
|
}
|
|
48
51
|
|