问题描述
我已经分叉了已经上传到 appstore 的现有 react-native 应用程序,我想基于这个应用程序创建另一个应用程序.我找不到任何关于使用应用程序名称更改包 ID 的参考.
I have forked existing react-native application which is already uploaded to appstore and I want to create another application based on this application. I couldn't find any references on changing bundle ID with Application name.
我尝试在 iOS
文件夹中使用全局替换手动替换 oldAppName
到 newAppName
,但是在替换、清理、重新安装后,我无法使用 react-native run-ios
运行应用程序它说我应该尝试使用 XCode 构建以查看更详细的错误,但在 XCode 项目中运行良好.
I have tried to manually replace oldAppName
to newAppName
with global replace in iOS
folder, but after replacing, cleaning, reinstalling, I cannot run the app with react-native run-ios
it's saying that I should try to build with XCode to see more detailed error, but in XCode project is running fine.
P.S 这是我在替换 oldAppName
后重置、清除和重新安装的方式:
P.S This is how I reset, clear and reinstall after replacing oldAppName
:
watchman watch-del-all && rm -rf node_modules && rm -rf $TMPDIR/react-* && rm -rf $TMPDIR/haste-map-react-native-packager-* && yarn cache clean && cd ios && rm -rf Pods && rm -rf assets && rm -rf build && pod cache clean --all && cd .. && rm -rf /tmp/metro-bundler-cache-*
yarn install && cd ios && pod install && cd ..
react-native bundle --platform ios --entry-file index.js --dev false --bundle-output ios/main.jsbundle --assets-dest ios
我需要的只是从分叉的应用程序中分离以获得 FireBase 的新捆绑程序 ID,并且没有对旧应用程序的引用.
All I need is detach from forked app to get new bundler ID for FireBase and have no references left to old application.
有什么建议还是我应该继续我的做法?
Any suggestions or should I just continue with the way I was doing it?
推荐答案
这是您正在搜索的链接. 去吧.
这篇关于有没有更简单的方法来更改应用程序 ID 和名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!