React Native:如何彻底删除Instabug?

时间:2019-05-31 19:03:57

标签: react-native instabug

我最近从我的React Native 0.53.3项目中删除了Instabug,但是当我运行react-native run-ios时却遇到了构建失败:

ld: framework not found Instabug
clang: error: linker command failed with exit code 1 (use -v to see invocation)



** BUILD FAILED **


The following build commands failed:

    Ld /Users/danale/Library/Developer/Xcode/DerivedData/build/Build/Products/Debug-iphonesimulator/NFIBEngage.app/NFIBEngage normal x86_64
(1 failure)

Installing build/Build/Products/Debug-iphonesimulator/NFIBEngage.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
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/NFIBEngage.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

有人知道如何从我的项目中完全删除Instabug,而不是在ios构建中寻找它吗?

到目前为止,我已将其从App.js文件中完全删除,但仍在build.gradleMainActivity.javaMainApplication.javasettings.gradle,{{ 1}}和project.pbxproj文件。我什至不使用yarn.lock

我如何彻底清理?

1 个答案:

答案 0 :(得分:0)

如果react-native unlink instabug-reactnative不起作用,请尝试手动删除所有本机链接更改。

您可以参考这些页面以删除所有参考

Instabug rn link checklist

Instabug Documentation

删除每个引用后,请清理项目。(有时可能需要删除Xcode派生的数据)