-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[iOS] custom app naming best practice? ~breaking currently! #13353
Comments
You should be able to leave I wasn't able to find the official Android and iOS resources documenting the naming limitations. Maybe somebody else knows where to find those. |
@migueloller - Thank you very much this clarifies a lot of things. So it now works within the simulator, but does not with the I have tried killing the Packager then Appart from that there is also one last detail I would love your advice on. When it comes to the Bundle Identifier. In Xcode the result is: org.reactjs.native.example.uniqueInHouseAppName So do I change the name within xcode or within the app Info.plist And for both of those what are the naming best practices? For anyone else this is what I did so far: package.json
App.json:
index.android.js & index.ios.js
Where the app can be any component. |
The app bundle ID in your A couple of things, though. This is simply a convention, it's not strictly enforced (although I'm sure there are limitations to the bundle ID string). You don't need to own the domain used in the reverse DNS notation, it's simply a utility to identify various projects within your namespace (you might have multiple apps you build all live under I think that Hope this helps! |
Description
When creating a new project name and trying to set a custom app name, when trying to deploy it on my phone or through simulator I get test errors.
Reproduction Steps and Sample Code
These are the steps so far where I get hic ups:
create a directory called src with an index.js file with the following:
Edited:
app.json
index.ios.js and index.android.js
package.json
"name": "unique.public.app",
Deleted the following:
/ios
/android
/node_modules
At this point the app loads on the simulator but I get
BUILD FAILED
Then trying to do the same but on my iPhone:
react-native run-ios --device 'iPhone custom name'
which fails because no team name assigned.
Then
open ios/unique.public.app.xcodeproj
and assigned "signing" > "team" for both my unique.public.app and unique.public.appTests Targets and closed Xcodeback to terminal
react-native run-ios --device 'iPhone custom name'
which runs it on my iPhone as expected with errors:And does not open the app.
Solution
Better documentation on how to custom name your app and which sections should be renamed.
Therefore how do I go about custom app naming properly?
Additional Information
The text was updated successfully, but these errors were encountered: