ios – 如何将react-native-vector-icons链接到项目

ios – 如何将react-native-vector-icons链接到项目,第1张

概述我使用react-native-icons获得了构建错误.我从他们的 github站点的安装说明中完成了链接命令.消息称图标已经与项目相关联. Ld /Users/rsanchez/Library/Developer/Xcode/DerivedData/NativeStarter-ddtqngxgxoergggtejjrwdqafazh/Build/Products/Debug-iphonesim 我使用react-native-icons获得了构建错误.我从他们的 github站点的安装说明中完成了链接命令.消息称图标已经与项目相关联.

Ld /Users/rsanchez/library/Developer/Xcode/DerivedData/NativeStarter-ddtqngxgxoergggtejjrwdqafazh/Build/Products/DeBUG-iphonesimulator/NativeStarter.app/NativeStarter normal x86_64@H_419_13@ cd /Users/rsanchez/Development/NativeStarter.git/ios@H_419_13@ export IPHONEOS_DEPLOYMENT_TARGET=7.0@H_419_13@ export PATH=”/Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin”@H_419_13@ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator9.2.sdk -L/Users/rsanchez/library/Developer/Xcode/DerivedData/NativeStarter-ddtqngxgxoergggtejjrwdqafazh/Build/Products/DeBUG-iphonesimulator -F/Users/rsanchez/library/Developer/Xcode/DerivedData/NativeStarter-ddtqngxgxoergggtejjrwdqafazh/Build/Products/DeBUG-iphonesimulator -fileList /Users/rsanchez/library/Developer/Xcode/DerivedData/NativeStarter-ddtqngxgxoergggtejjrwdqafazh/Build/Intermediates/NativeStarter.build/DeBUG-iphonesimulator/NativeStarter.build/Objects-normal/x86_64/NativeStarter.linkfileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=7.0 -Xlinker -objc_abi_version -Xlinker 2 -ObjC -fobjc-arc -fobjc-link-runtime -lRNVectorIcons /Users/rsanchez/library/Developer/Xcode/DerivedData/NativeStarter-ddtqngxgxoergggtejjrwdqafazh/Build/Products/DeBUG-iphonesimulator/libReact.a /Users/rsanchez/library/Developer/Xcode/DerivedData/NativeStarter-ddtqngxgxoergggtejjrwdqafazh/Build/Products/DeBUG-iphonesimulator/libRCTActionSheet.a /Users/rsanchez/library/Developer/Xcode/DerivedData/NativeStarter-ddtqngxgxoergggtejjrwdqafazh/Build/Products/DeBUG-iphonesimulator/libRCTGeolocation.a /Users/rsanchez/library/Developer/Xcode/DerivedData/NativeStarter-ddtqngxgxoergggtejjrwdqafazh/Build/Products/DeBUG-iphonesimulator/libRCtimage.a /Users/rsanchez/library/Developer/Xcode/DerivedData/NativeStarter-ddtqngxgxoergggtejjrwdqafazh/Build/Products/DeBUG-iphonesimulator/libRCTlinking.a /Users/rsanchez/library/Developer/Xcode/DerivedData/NativeStarter-ddtqngxgxoergggtejjrwdqafazh/Build/Products/DeBUG-iphonesimulator/libRCTNetwork.a /Users/rsanchez/library/Developer/Xcode/DerivedData/NativeStarter-ddtqngxgxoergggtejjrwdqafazh/Build/Products/DeBUG-iphonesimulator/libRCTSettings.a /Users/rsanchez/library/Developer/Xcode/DerivedData/NativeStarter-ddtqngxgxoergggtejjrwdqafazh/Build/Products/DeBUG-iphonesimulator/libRCTText.a /Users/rsanchez/library/Developer/Xcode/DerivedData/NativeStarter-ddtqngxgxoergggtejjrwdqafazh/Build/Products/DeBUG-iphonesimulator/libRCTVibration.a /Users/rsanchez/library/Developer/Xcode/DerivedData/NativeStarter-ddtqngxgxoergggtejjrwdqafazh/Build/Products/DeBUG-iphonesimulator/libRCTWebSocket.a -Xlinker -dependency_info -Xlinker /Users/rsanchez/library/Developer/Xcode/DerivedData/NativeStarter-ddtqngxgxoergggtejjrwdqafazh/Build/Intermediates/NativeStarter.build/DeBUG-iphonesimulator/NativeStarter.build/Objects-normal/x86_64/NativeStarter_dependency_info.dat -o /Users/rsanchez/library/Developer/Xcode/DerivedData/NativeStarter-ddtqngxgxoergggtejjrwdqafazh/Build/Products/DeBUG-iphonesimulator/NativeStarter.app/NativeStarter

ld: library not found for -lRNVectorIcons@H_419_13@ clang: error: linker command Failed with exit code 1 (use -v to see invocation)

解决方法 我们更新了 Native Starter Pro的文档.请查看常见问题解答中的第一个问题

http://strapmobile.com/docs/native-starter-pro/faqs/

概率:

>如果您的系统中安装了“npm3”,则可能会出现问题.@H_419_13@>确保已安装’npm2′.@H_419_13@>链接XCode中的矢量图标repo将解决此问题

解决方案1:拖放以链接RN矢量图标文件:

>在您的取景器/计算机中,导航到(项目文件夹) – > node_modules – >反应天然矢量-图标@H_419_13@>将RNVectorIcons.xcodeproj拖到侧栏中的librarIEs,如下图所示@H_419_13@

解决方案2:手动链接RN矢量图标文件:

>转到Xcode中的“Build Phases”>点击”链接二进制文件与库>点击“添加其他”>导航到’NativeStarter'(项目文件夹) – > node_modules – >反应天然矢量-图标>选择’RNVectorIcons.xcodeproj’>清洁构建>再次建立

总结

以上是内存溢出为你收集整理的ios – 如何将react-native-vector-icons链接到项目全部内容,希望文章能够帮你解决ios – 如何将react-native-vector-icons链接到项目所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://www.outofmemory.cn/web/1002647.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-22
下一篇 2022-05-22

发表评论

登录后才能评论

评论列表(0条)

保存