React-Native 填坑之旅--删除第三方库

做React-Native项目时,使用Realm做数据持久化,由于种种不便,所以将其删除。

由于项目依赖关系,故使用以下命令:

1.删除项目依赖

$ npm uninstall realm --save

到此处,不能高兴太早,被坑的很惨啊!!!!

2.编译iOS,运行为啥报错呢??

报错信息如下:

Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist

Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/ReactNativexx.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

看到这些,蛋都碎了,有木有??有木有??明明什么么都没做,为啥运行出错呢??

3.在xcode中删除相关配置

删除库文件01.png
删除库文件02.png
删除库文件03.png

至此xcode中编译成功

参考资料

React-Native填坑之删除第三方开源组件的依赖包

React Native开发错误警告处理总结

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容