@goliapkg/sentori-expo 9.0.0 → 9.0.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/app.plugin.js +12 -3
  2. package/package.json +1 -1
package/app.plugin.js CHANGED
@@ -284,13 +284,13 @@ const withSentoriNSE = (config) => {
284
284
  *
285
285
  * @param {object} pbxproj — `xcode` package's Pbxproj instance
286
286
  * (cfg.modResults inside withXcodeProject)
287
- * @param {{ mainBundleId: string, deploymentTarget: string }} opts
287
+ * @param {{ mainBundleId: string, deploymentTarget: string, appleTeamId?: string }} opts
288
288
  * @returns {boolean} — true when the target was added, false when no-op
289
289
  */
290
290
  function injectNSETarget(pbxproj, opts) {
291
291
  if (pbxproj.pbxTargetByName(NSE_TARGET)) return false
292
292
 
293
- const { deploymentTarget, mainBundleId } = opts
293
+ const { appleTeamId, deploymentTarget, mainBundleId } = opts
294
294
  if (!mainBundleId) throw new Error('[sentori-expo] mainBundleId is required for NSE target')
295
295
  if (!deploymentTarget) {
296
296
  throw new Error('[sentori-expo] deploymentTarget is required for NSE target')
@@ -322,6 +322,14 @@ function injectNSETarget(pbxproj, opts) {
322
322
  SWIFT_VERSION: '5.0',
323
323
  TARGETED_DEVICE_FAMILY: '"1,2"',
324
324
  }
325
+ // Mirror the host app's signing team onto the NSE target. Without
326
+ // DEVELOPMENT_TEAM, `expo run:ios --device` falls back to the user's
327
+ // personal Apple-ID team and Xcode can't issue a provisioning profile
328
+ // for `<mainBundleId>.SentoriNSE` under the project's actual team —
329
+ // fails with "No profiles for ... were found". If the host hasn't
330
+ // configured a team (manual-signing projects), leave it unset so the
331
+ // user's existing flow keeps working.
332
+ if (appleTeamId) settings.DEVELOPMENT_TEAM = appleTeamId
325
333
  const nseTarget = pbxproj.hash.project.objects.PBXNativeTarget[target.uuid]
326
334
  const configListUuid = nseTarget.buildConfigurationList
327
335
  const configList = pbxproj.hash.project.objects.XCConfigurationList[configListUuid]
@@ -355,7 +363,8 @@ const withSentoriNSETarget = (config) =>
355
363
  // not the top-level ios field. 15.1 matches Expo SDK 55's default.
356
364
  const deploymentTarget =
357
365
  cfg.ios?.deploymentTarget ?? cfg.ios?.infoPlist?.MinimumOSVersion ?? '15.1'
358
- injectNSETarget(cfg.modResults, { deploymentTarget, mainBundleId })
366
+ const appleTeamId = cfg.ios?.appleTeamId
367
+ injectNSETarget(cfg.modResults, { appleTeamId, deploymentTarget, mainBundleId })
359
368
  return cfg
360
369
  })
361
370
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goliapkg/sentori-expo",
3
- "version": "9.0.0",
3
+ "version": "9.0.1",
4
4
  "description": "Expo adapter for Sentori — Config Plugin marker, expo-application auto-config, EAS post-build helper. Built on @goliapkg/sentori-react-native.",
5
5
  "license": "Apache-2.0 OR MIT",
6
6
  "author": "GOLIA K.K. <takagi@golia.jp> (https://golia.jp)",