在针对简介教程' Awesome Project'运行react-native run-ios时多次拒绝权限。

时间:2016-11-21 19:56:49

标签: ios reactjs permissions react-native watchman

我正试图通过最初的反应教程' AwesomeProject'。

我的环境:

node -v => v7.1.0

watchman -v => 3.9.0

react-native -v => react-native-cli: 1.2.0 ; react-native: 0.37.0

在AwesomeProject中,当我运行react-native run-ios时,构建失败,打印到终端:

Found Xcode project AwesomeProject.xcodeproj
Launching iPhone 6 (iOS 10.1)...
Building using "xcodebuild -project AwesomeProject.xcodeproj -scheme AwesomeProject -destination id=212C8444-244A-448D-B955-7DB9287A0040 -derivedDataPath build"
User defaults from command line:

IDEDerivedDataPathOverride = /Users/ReidasaurusRex/Documents/coding/react_native/AwesomeProject/ios/build


2016-11-21 11:46:49.880 xcodebuild[8158:95819] couldn't read dependency graph from '/Users/ReidasaurusRex/Documents/coding/react_native/AwesomeProject/ios/build/Build/Intermediates/RCTLinking.build/Debug-iphonesimulator/RCTLinking.build/dgph': Permission denied

2016-11-21 11:46:49.880 xcodebuild[8158:95819] unable to create temporary file at /Users/ReidasaurusRex/Documents/coding/react_native/AwesomeProject/ios/build/Build/Intermediates/RCTLinking.build/Debug-iphonesimulator/RCTLinking.build/dgph-qpIebqrJ: Permission denied

2016-11-21 11:46:49.881 xcodebuild[8158:95819]  DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-11527/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/BuildSystem/DependencyGraph/XCDependencyGraph.mm:688
Details:  unable to write dependency graph: Permission denied
Object:   <XCDependencyGraph>
Method:   +loadOrCreateInBuildDirectory:withTargetBuildContext:withBasePath:
Thread:   <NSThread: 0x7ff9cb59cb10>{number = 10, name = (null)}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.

还有一些类似的错误。完整输出如下。

模拟器中的结果只是一个白色屏幕,上面写着&#34; Awesome Proejct&#34;在中间,&#34;由React Native提供支持&#34;在底部,而不是我期望从index.ios.js看到的文本。

(node:8115) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
(node:8115) DeprecationWarning: Using Buffer without `new` will soon stop working. Use `new Buffer()`, or preferably `Buffer.from()`, `Buffer.allocUnsafe()` or `Buffer.alloc()` instead.
Found Xcode project AwesomeProject.xcodeproj
Launching iPhone 6 (iOS 10.1)...
Building using "xcodebuild -project AwesomeProject.xcodeproj -scheme AwesomeProject -destination id=212C8444-244A-448D-B955-7DB9287A0040 -derivedDataPath build"
User defaults from command line:

    IDEDerivedDataPathOverride = /Users/ReidasaurusRex/Documents/coding/react_native/AwesomeProject/ios/build


2016-11-21 11:46:49.880 xcodebuild[8158:95819] couldn't read dependency graph from '/Users/ReidasaurusRex/Documents/coding/react_native/AwesomeProject/ios/build/Build/Intermediates/RCTLinking.build/Debug-iphonesimulator/RCTLinking.build/dgph': Permission denied

2016-11-21 11:46:49.880 xcodebuild[8158:95819] unable to create temporary file at /Users/ReidasaurusRex/Documents/coding/react_native/AwesomeProject/ios/build/Build/Intermediates/RCTLinking.build/Debug-iphonesimulator/RCTLinking.build/dgph-qpIebqrJ: Permission denied

2016-11-21 11:46:49.881 xcodebuild[8158:95819]  DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-11527/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/BuildSystem/DependencyGraph/XCDependencyGraph.mm:688
Details:  unable to write dependency graph: Permission denied
Object:   <XCDependencyGraph>
Method:   +loadOrCreateInBuildDirectory:withTargetBuildContext:withBasePath:
Thread:   <NSThread: 0x7ff9cb59cb10>{number = 10, name = (null)}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.

2016-11-21 11:46:49.882 xcodebuild[8158:95818] couldn't read dependency graph from '/Users/ReidasaurusRex/Documents/coding/react_native/AwesomeProject/ios/build/Build/Intermediates/RCTImage.build/Debug-iphonesimulator/RCTImage.build/dgph': Permission denied
2016-11-21 11:46:49.882 xcodebuild[8158:95818] unable to create temporary file at /Users/ReidasaurusRex/Documents/coding/react_native/AwesomeProject/ios/build/Build/Intermediates/RCTImage.build/Debug-iphonesimulator/RCTImage.build/dgph-7Vj50Bc6: Permission denied
2016-11-21 11:46:49.882 xcodebuild[8158:95818]  DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-11527/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/BuildSystem/DependencyGraph/XCDependencyGraph.mm:688
Details:  unable to write dependency graph: Permission denied
Object:   <XCDependencyGraph>
Method:   +loadOrCreateInBuildDirectory:withTargetBuildContext:withBasePath:
Thread:   <NSThread: 0x7ff9cb5c7120>{number = 9, name = (null)}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.

2016-11-21 11:46:49.946 xcodebuild[8158:95817] couldn't read dependency graph from '/Users/ReidasaurusRex/Documents/coding/react_native/AwesomeProject/ios/build/Build/Intermediates/RCTWebSocket.build/Debug-iphonesimulator/RCTWebSocket.build/dgph': Permission denied

2016-11-21 11:46:49.947 xcodebuild[8158:95817] unable to create temporary file at /Users/ReidasaurusRex/Documents/coding/react_native/AwesomeProject/ios/build/Build/Intermediates/RCTWebSocket.build/Debug-iphonesimulator/RCTWebSocket.build/dgph-lKsMdU4b: Permission denied

2016-11-21 11:46:49.947 xcodebuild[8158:95817]  DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-11527/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/BuildSystem/DependencyGraph/XCDependencyGraph.mm:688
Details:  unable to write dependency graph: Permission denied
Object:   <XCDependencyGraph>
Method:   +loadOrCreateInBuildDirectory:withTargetBuildContext:withBasePath:
Thread:   <NSThread: 0x7ff9cb9de310>{number = 8, name = (null)}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.

2016-11-21 11:46:50.093 xcodebuild[8158:95819] couldn't read dependency graph from '/Users/ReidasaurusRex/Documents/coding/react_native/AwesomeProject/ios/build/Build/Intermediates/RCTActionSheet.build/Debug-iphonesimulator/RCTActionSheet.build/dgph': Permission denied
2016-11-21 11:46:50.094 xcodebuild[8158:95819] unable to create temporary file at /Users/ReidasaurusRex/Documents/coding/react_native/AwesomeProject/ios/build/Build/Intermediates/RCTActionSheet.build/Debug-iphonesimulator/RCTActionSheet.build/dgph-m10abzF6: Permission denied
2016-11-21 11:46:50.094 xcodebuild[8158:95819]  DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-11527/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/BuildSystem/DependencyGraph/XCDependencyGraph.mm:688
Details:  unable to write dependency graph: Permission denied
Object:   <XCDependencyGraph>
Method:   +loadOrCreateInBuildDirectory:withTargetBuildContext:withBasePath:
Thread:   <NSThread: 0x7ff9cb59cb10>{number = 10, name = (null)}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.

2016-11-21 11:46:50.098 xcodebuild[8158:95817] couldn't read dependency graph from '/Users/ReidasaurusRex/Documents/coding/react_native/AwesomeProject/ios/build/Build/Intermediates/RCTText.build/Debug-iphonesimulator/RCTText.build/dgph': Permission denied
2016-11-21 11:46:50.099 xcodebuild[8158:95817] unable to create temporary file at /Users/ReidasaurusRex/Documents/coding/react_native/AwesomeProject/ios/build/Build/Intermediates/RCTText.build/Debug-iphonesimulator/RCTText.build/dgph-WZm1eBoH: Permission denied
2016-11-21 11:46:50.099 xcodebuild[8158:95817]  DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-11527/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/BuildSystem/DependencyGraph/XCDependencyGraph.mm:688
Details:  unable to write dependency graph: Permission denied
Object:   <XCDependencyGraph>
Method:   +loadOrCreateInBuildDirectory:withTargetBuildContext:withBasePath:
Thread:   <NSThread: 0x7ff9cb9de310>{number = 8, name = (null)}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.

2016-11-21 11:46:50.116 xcodebuild[8158:95819] couldn't read dependency graph from '/Users/ReidasaurusRex/Documents/coding/react_native/AwesomeProject/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/dgph': Permission denied
2016-11-21 11:46:50.116 xcodebuild[8158:95819] unable to create temporary file at /Users/ReidasaurusRex/Documents/coding/react_native/AwesomeProject/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/dgph-aviphNLt: Permission denied
2016-11-21 11:46:50.116 xcodebuild[8158:95819]  DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-11527/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/BuildSystem/DependencyGraph/XCDependencyGraph.mm:688
Details:  unable to write dependency graph: Permission denied
Object:   <XCDependencyGraph>
Method:   +loadOrCreateInBuildDirectory:withTargetBuildContext:withBasePath:
Thread:   <NSThread: 0x7ff9cb59cb10>{number = 10, name = (null)}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.

2016-11-21 11:46:50.142 xcodebuild[8158:95818] couldn't read dependency graph from '/Users/ReidasaurusRex/Documents/coding/react_native/AwesomeProject/ios/build/Build/Intermediates/RCTGeolocation.build/Debug-iphonesimulator/RCTGeolocation.build/dgph': Permission denied
2016-11-21 11:46:50.142 xcodebuild[8158:95818] unable to create temporary file at /Users/ReidasaurusRex/Documents/coding/react_native/AwesomeProject/ios/build/Build/Intermediates/RCTGeolocation.build/Debug-iphonesimulator/RCTGeolocation.build/dgph-YbwOxh25: Permission denied
2016-11-21 11:46:50.142 xcodebuild[8158:95818]  DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-11527/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/BuildSystem/DependencyGraph/XCDependencyGraph.mm:688
Details:  unable to write dependency graph: Permission denied
Object:   <XCDependencyGraph>
Method:   +loadOrCreateInBuildDirectory:withTargetBuildContext:withBasePath:
Thread:   <NSThread: 0x7ff9cb5c7120>{number = 9, name = (null)}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.

2016-11-21 11:46:50.165 xcodebuild[8158:95818] couldn't read dependency graph from '/Users/ReidasaurusRex/Documents/coding/react_native/AwesomeProject/ios/build/Build/Intermediates/RCTSettings.build/Debug-iphonesimulator/RCTSettings.build/dgph': Permission denied
2016-11-21 11:46:50.166 xcodebuild[8158:95818] unable to create temporary file at /Users/ReidasaurusRex/Documents/coding/react_native/AwesomeProject/ios/build/Build/Intermediates/RCTSettings.build/Debug-iphonesimulator/RCTSettings.build/dgph-v5AXioKg: Permission denied
2016-11-21 11:46:50.166 xcodebuild[8158:95818]  DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-11527/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/BuildSystem/DependencyGraph/XCDependencyGraph.mm:688
Details:  unable to write dependency graph: Permission denied
Object:   <XCDependencyGraph>
Method:   +loadOrCreateInBuildDirectory:withTargetBuildContext:withBasePath:
Thread:   <NSThread: 0x7ff9cb5c7120>{number = 9, name = (null)}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.

2016-11-21 11:46:50.325 xcodebuild[8158:95817] couldn't read dependency graph from '/Users/ReidasaurusRex/Documents/coding/react_native/AwesomeProject/ios/build/Build/Intermediates/RCTNetwork.build/Debug-iphonesimulator/RCTNetwork.build/dgph': Permission denied
2016-11-21 11:46:50.325 xcodebuild[8158:95817] unable to create temporary file at /Users/ReidasaurusRex/Documents/coding/react_native/AwesomeProject/ios/build/Build/Intermediates/RCTNetwork.build/Debug-iphonesimulator/RCTNetwork.build/dgph-LvCiTfxN: Permission denied
2016-11-21 11:46:50.326 xcodebuild[8158:95817]  DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-11527/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/BuildSystem/DependencyGraph/XCDependencyGraph.mm:688
Details:  unable to write dependency graph: Permission denied
Object:   <XCDependencyGraph>
Method:   +loadOrCreateInBuildDirectory:withTargetBuildContext:withBasePath:
Thread:   <NSThread: 0x7ff9cb9de310>{number = 8, name = (null)}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.

2016-11-21 11:46:50.328 xcodebuild[8158:95818] couldn't read dependency graph from '/Users/ReidasaurusRex/Documents/coding/react_native/AwesomeProject/ios/build/Build/Intermediates/RCTVibration.build/Debug-iphonesimulator/RCTVibration.build/dgph': Permission denied
2016-11-21 11:46:50.329 xcodebuild[8158:95818] unable to create temporary file at /Users/ReidasaurusRex/Documents/coding/react_native/AwesomeProject/ios/build/Build/Intermediates/RCTVibration.build/Debug-iphonesimulator/RCTVibration.build/dgph-ZYqquDqz: Permission denied
2016-11-21 11:46:50.329 xcodebuild[8158:95818]  DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-11527/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/BuildSystem/DependencyGraph/XCDependencyGraph.mm:688
Details:  unable to write dependency graph: Permission denied
Object:   <XCDependencyGraph>
Method:   +loadOrCreateInBuildDirectory:withTargetBuildContext:withBasePath:
Thread:   <NSThread: 0x7ff9cb5c7120>{number = 9, name = (null)}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.

Build Preparation


Couldn't create workspace arena folder '/Users/ReidasaurusRex/Documents/coding/react_native/AwesomeProject/ios/build': Unable to write to info file '<DVTFilePath:0x7ff9cbaa5490:'/Users/ReidasaurusRex/Documents/coding/react_native/AwesomeProject/ios/build/info.plist'>'.

Couldn't update module cache session file '/Users/ReidasaurusRex/Documents/coding/react_native/AwesomeProject/ios/build/ModuleCache/Session.modulevalidation': You don’t have permission to save the file “Session.modulevalidation” in the folder “ModuleCache”.



** BUILD FAILED **


Installing build/Build/Products/Debug-iphonesimulator/AwesomeProject.app
Launching org.reactjs.native.example.AwesomeProject

0 个答案:

没有答案