我正在第一次使用react ios应用程序。所以一切都很好。但我刚刚安装了React Native Vector Icons并使用了react-native link
命令。从那以后我无法构建我的xcode项目。
每次启动xcode时都会弹出一堆错误。
Popup说了解解锁React-Native-vector-icons。当我点击解锁时,它不起作用。
当我构建时,它会给我以下错误
Check dependencies
error: Unable to create directory: /Users/buckydroid/Desktop/ReactProject/AyeMobile/ios/Build/Intermediates (Permission denied)
error: Unable to create directory: /Users/buckydroid/Desktop/ReactProject/AyeMobile/ios/Build/Products (Permission denied)
Write auxiliary files
/bin/mkdir -p /Users/user/Desktop/ReactProject/App/ios/Build/Intermediates/React.build/Debug-iphonesimulator/yoga.build
error: Unable to create directory: /Users/user/Desktop/ReactProject/App/ios/Build/Intermediates/React.build/Debug-iphonesimulator/yoga.build (Permission denied)
/bin/mkdir -p /Users/user/Desktop/ReactProject/App/ios/Build/Intermediates/React.build/Debug-iphonesimulator/yoga.build
error: Unable to create directory: /Users/user/Desktop/ReactProject/App/ios/Build/Intermediates/React.build/Debug-iphonesimulator/yoga.build (Permission denied)
/bin/mkdir -p /Users/user/Desktop/ReactProject/App/ios/Build/Intermediates/React.build/Debug-iphonesimulator/yoga.build/Objects-normal/x86_64
error: Unable to create directory: /Users/user/Desktop/ReactProject/App/ios/Build/Intermediates/React.build/Debug-iphonesimulator/yoga.build/Objects-normal/x86_64 (Permission denied)
/bin/mkdir -p /Users/user/Desktop/ReactProject/App/ios/Build/Intermediates/React.build/Debug-iphonesimulator/yoga.build
error: Unable to create directory: /Users/user/Desktop/ReactProject/App/ios/Build/Intermediates/React.build/Debug-iphonesimulator/yoga.build (Permission denied)
/bin/mkdir -p /Users/user/Desktop/ReactProject/App/ios/Build/Intermediates/React.build/Debug-iphonesimulator/yoga.build
error: Unable to create directory: /Users/user/Desktop/ReactProject/App/ios/Build/Intermediates/React.build/Debug-iphonesimulator/yoga.build (Permission denied)
/bin/mkdir -p /Users/user/Desktop/ReactProject/App/ios/Build/Intermediates/React.build/Debug-iphonesimulator/yoga.build
error: Unable to create directory: /Users/user/Desktop/ReactProject/App/ios/Build/Intermediates/React.build/Debug-iphonesimulator/yoga.build (Permission denied)
/bin/mkdir -p /Users/user/Desktop/ReactProject/App/ios/Build/Intermediates/React.build/Debug-iphonesimulator/yoga.build
error: Unable to create directory: /Users/user/Desktop/ReactProject/App/ios/Build/Intermediates/React.build/Debug-iphonesimulator/yoga.build (Permission denied)
当我使用sudo react-native run-ios --simulator="iPhone X"
命令通过终端构建它时,它可以工作。但永远不会在模拟器上打开。
需要帮助:(
答案 0 :(得分:0)
嗯,很奇怪,但我刚刚重新启动我的mac并且它有效.-。