美文网首页
React-Native 填坑之旅--删除第三方库

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

作者: FreeLeaves | 来源:发表于2017-05-26 16:34 被阅读0次

做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开发错误警告处理总结

相关文章

网友评论

      本文标题:React-Native 填坑之旅--删除第三方库

      本文链接:https://www.haomeiwen.com/subject/shsxfxtx.html