如何修复 xcode 中的 Apple Mach-O 链接器错误组问题?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/43270385/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to fix Apple Mach-O Linker Error Group issue in xcode?
提问by Saravana Kumar
I try to implement push notification:
我尝试实现推送通知:
But I Got this issue :
但我遇到了这个问题:
Apple Mach-O Linker Error Group
no such file or directory:
'/Users/arunkumar/Library/Developer/Xcode/DerivedData/sample-bskvypzxnjnnszbjeelvenubespf/Build/Products/Debug-iphonesimulator/libRCTPushNotification-tvOS.a
How to fix that issue ?
如何解决这个问题?
采纳答案by Sport
Run react-native linkthis will all for you. Or use these steps
运行react-native link这一切都为您服务。或使用这些步骤
Step 1
第1步
.xcodeprojfile inside it's folder. Drag this file to your project on Xcode (usually under the Libraries group on Xcode)
.xcodeproj文件在它的文件夹中。将此文件拖到 Xcode 上的项目中(通常在 Xcode 上的 Libraries 组下)
Step 2
第2步
Click on your main project file (the one that represents the .xcodeproj) select Build Phases and drag the static library from the Products folder inside the Library you are importing to Link Binary With Libraries
单击您的主项目文件(代表 .xcodeproj 的文件)选择 Build Phases 并将静态库从您正在导入的库内的 Products 文件夹中拖到 Link Binary With Libraries
Step 3
第 3 步
project's file, select Build Settingsand search for Header Search Paths. There you should include the path to your library (if it has relevant files on subdirectories remember to make it recursive, like React.
项目的文件,选择Build Settings并搜索Header Search Paths。在那里你应该包含你的库的路径(如果它在子目录中有相关文件,记得让它递归,就像 React.
refer this one link
参考这个 链接