Command failed: xcrun instruments -s
See original GitHub issueDescription
i was using create-react-native-app
for initing my rn
project, and run yarn run eject
and run yarn run ios
throw error
the main error was command `xcrun instruments -s`
i run `xcrun instruments -s` throw error
2018-03-15 16:36:57.731 instruments[1259:44305] Error: Error Domain=Instruments Utility Error Code=100 "Failure to create package distribution repository" UserInfo={NSLocalizedDescription=Failure to create package distribution repository} originating from <XRPackageDistributionRegistry: 0x7fbbc4404380>
Expected Behavior
no error
Observed Behavior
MacBook-Pro-3:react-native-app yxc$ yarn run ios
yarn run v1.3.2$ react-native run-iosScanning folders for symlinks in /Users/yxc/code/mycode/react-native-app/node_modules (15ms)Found Xcode project reactnativeapp.xcodeproj
2018-03-15 21:36:43.510 instruments[3691:209535] Error: Error Domain=Instruments Utility Error Code=100"Failure to create package distribution repository" UserInfo={NSLocalizedDescription=Failure to create p
ackage distribution repository} originating from <XRPackageDistributionRegistry: 0x7fa5c3866110>
Command failed: xcrun instruments -s
2018-03-15 21:36:43.510 instruments[3691:209535] Error: Error Domain=Instruments Utility Error Code=100
"Failure to create package distribution repository" UserInfo={NSLocalizedDescription=Failure to create package distribution repository} originating from <XRPackageDistributionRegistry: 0x7fa5c3866110>
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
MacBook-Pro-3:react-native-app yxc$ xcrun instruments -s
2018-03-15 21:36:50.214 instruments[3694:209703] Error: Error Domain=Instruments Utility Error Code=100
"Failure to create package distribution repository" UserInfo={NSLocalizedDescription=Failure to create p
ackage distribution repository} originating from <XRPackageDistributionRegistry: 0x7ff55d54ae50>
MacBook-Pro-3:react-native-app yxc$ sudo xcrun instruments -s
Password:
Known Devices:
MacBook Pro (2) [A246B51B-FD93-58B6-BDFE-B641FAF959A2]
Apple TV (11.2) [9D2A0023-076D-4207-B63B-C4F1302BBA16] (Simulator)
Apple TV 4K (11.2) [5E24B429-3B35-494E-B8EE-8D9394F2013B] (Simulator)
Apple TV 4K (at 1080p) (11.2) [505EBB5A-D8AE-4B2C-AC15-E5073F3A7E18] (Simulator)
Apple Watch - 38mm (4.2) [870AA69B-C085-4EE0-A7B0-90B978F4C17D] (Simulator)
Apple Watch - 42mm (4.2) [60F90FD1-B26F-4FFC-9CF8-5C11ED4FDFC7] (Simulator)iPad (5th generation) (11.2) [037561AC-B483-43AB-B54C-08B94EC0FB96] (Simulator)
iPad Air (11.2) [E5569220-A22D-45BC-8484-2AA07CE51791] (Simulator)
iPad Air 2 (11.2) [7A182B6C-0049-4E6D-872A-E0010374A872] (Simulator)
iPad Pro (10.5-inch) (11.2) [0E7B33D4-3F01-455A-819F-5DCC20620DF7] (Simulator)
iPad Pro (12.9-inch) (11.2) [50931B4E-8EE6-4643-8237-E98CB66A315D] (Simulator)iPad Pro (12.9-inch) (2nd generation) (11.2) [6D3DFCC3-979E-421D-B7C4-E572AD24C476] (Simulator)
iPad Pro (9.7-inch) (11.2) [2577C751-E0AD-4A4A-9573-39CD015E08B0] (Simulator)
iPhone 5s (11.2) [53396CE6-BB77-432A-9AC6-A715A2F65624] (Simulator)
iPhone 6 (11.2) [2DB63DFD-E1B8-4048-B650-294D113B8D09] (Simulator)
iPhone 6 Plus (11.2) [A1B8F4C8-BCCB-495C-9843-E93901397D67] (Simulator)
iPhone 6s (11.2) [E9A0D940-0A00-4F31-9F0C-ECABE8251BF9] (Simulator)
iPhone 6s Plus (11.2) [A0424721-85C5-44F3-A031-71464E49033C] (Simulator)
iPhone 7 (11.2) [3EFA3F44-7199-4AC9-975E-FB497FDB85EC] (Simulator)
iPhone 7 (11.2) + Apple Watch Series 2 - 38mm (4.2) [39E494A1-AA0E-4555-B574-CAA2A585C237] (Simulator)
iPhone 7 Plus (11.2) [5CF85B80-5DA7-444D-B3C8-D5A4566135BF] (Simulator)
iPhone 7 Plus (11.2) + Apple Watch Series 2 - 42mm (4.2) [E8B520BF-30E5-401A-97EA-277AA20FFF4D] (Simulat
or)
iPhone 8 (11.2) [D731E585-49D0-472D-83BA-49C306B19D0B] (Simulator)
iPhone 8 (11.2) + Apple Watch Series 3 - 38mm (4.2) [3865C101-20D9-4308-8BBD-63D0821B978B] (Simulator)
iPhone 8 Plus (11.2) [27315A94-D153-4CAF-8211-8F6AC0BE673B] (Simulator)
iPhone 8 Plus (11.2) + Apple Watch Series 3 - 42mm (4.2) [0F8C83BA-74D3-47E1-B8F7-43419DCD0F69] (Simulat
or) "Failure to create package distribution repository" UserInfo={NSLocalizedDescription=FiPhone SE (11.2) [E05E5F47-30EE-4EC9-8BAC-1BB032F1D543] (Simulator) bf08b6df0>
iPhone X (11.2) [9FA39A1E-16EE-4A92-B30E-2A8B6F3DEA3E] (Simulator)
Known Templates:
"Activity Monitor" "Failure to create package distribution repository" UserInfo={NSLocalizedDescription=F"Allocations" bf08b6df0>
"Blank"
"Cocoa Layout"
"Core Animation"
"Core Data"
"Counters"
"Energy Log"
"File Activity"
"Leaks"
"Metal System Trace"
"Network"
"SceneKit"
"System Trace"
"System Usage"
"Time Profiler"
"Zombies"
MacBook-Pro-3:react-native-app yxc$
Environment
npm ls react-native-scripts
: 1.11.1npm ls react-native
: 0.52.0npm ls expo
: 25.0.0node -v
: 8.9.3npm -v
: 5.6.0yarn --version
: 1.3.2watchman version
: 4.9.0
Also specify:
- Operating system: mac os High Sierra
- Phone/emulator/simulator & version: high
Reproducible Demo
question asked at stackoverflow https://stackoverflow.com/questions/49294761/how-to-solve-react-native-command-failed-xcrun-instruments-s
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Command failed: xcrun instruments -s - Apple Developer
just use sudo Command `xcrun instruments -s` will work, the detail problem https://github.com/react-community/create-react-native-app/issues/597.
Read more >Command failed: xcrun instruments -s - Stack Overflow
I want to run my react native app on a real ios device with this line : npx react-native run-ios --udid SOME-UDID. but...
Read more >ReactNative Error Command failed: xcrun instruments -s
ReactNative Error Command failed: xcrun instruments -s ... ReactNative app in the simulator using the command react-native run-ios The error ...
Read more >React-Native xcrun: error: Failed to locate 'instruments' in ...
instruments command -line tool has been removed in Xcode 13 and Apple asks to use xctrace instead. But I'm not sure how I...
Read more >error: unable to find utility "instruments", not a developer tool ...
You need to launch XCode and agree to the terms first. Then go to Preferences > Locations and you'll see a select tag...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@EvanBacon 3q all the same
Adding for posterity: I ran into this same problem today and followed this Stack Overflow post to fix From the link: