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中删除相关配置

React-Native 填坑之旅--删除第三方库_第1张图片
删除库文件01.png
React-Native 填坑之旅--删除第三方库_第2张图片
删除库文件02.png
React-Native 填坑之旅--删除第三方库_第3张图片
删除库文件03.png

至此xcode中编译成功

参考资料

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

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

你可能感兴趣的:(React-Native 填坑之旅--删除第三方库)