@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/apple.ts +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elumixor/devkit",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "Dev orchestrator for bun monorepos — free ports, run apps side-by-side, open the browser when ready",
5
5
  "author": "elumixor",
6
6
  "license": "ISC",
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
- -sdk ${sdk} -destination ${destination} -derivedDataPath ${derived} \
48
+ -destination ${destination} -derivedDataPath ${derived} \
46
49
  CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO build`;
47
50
  }
48
51