Development team resets on every native:run ios #745
Replies: 1 comment
-
|
NativePHP treats the nativephp/ directory as ephemeral, and it gets completely rebuilt on each run. So any manual changes you make inside it (including Xcode project signing settings) will always be wiped. The fix is to not set development_team in config/nativephp.php directly, but instead drive it from your .env file, which is the supported pattern. Make sure your config reads from the env: Then in your Your development team ID can be found in your Apple Developer account under "Membership details." If development_team is already wired to env() in your config and it's still showing "Unknown Name", a few things to check:
If none of that works and it's genuinely a bug where NativePHP isn't injecting the value into the Xcode project at all, worth filing an issue on the NativePHP mobile repo with the exact config structure you're using. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Every time
php artisan native:run iosis run, the ios/ directoryis recreated and the development team setting is lost from Xcode.
Config value
development_teamin config/nativephp.php is setbut not persisted to the Xcode project properly.
Expected: Team ID should persist across builds
Actual: Team shows as "Unknown Name" after every rebuild
PHP: 8.5
NativePHP: v3
macOS: Sequoia
Xcode: 17
Beta Was this translation helpful? Give feedback.
All reactions