我正在关注官方React Native网站上的教程.
使用以下代码构建我的项目:
react-native run-ios
Run Code Online (Sandbox Code Playgroud)
我收到错误:
Found Xcode project TestProject.xcodeproj
xcrun: error: unable to find utility "instruments", not a developer
tool or in PATH
Command failed: xcrun instruments -s
xcrun: error: unable to find utility "instruments", not a developer
tool or in PATH
Run Code Online (Sandbox Code Playgroud)
虽然,当我从.xcodeproj运行应用程序时,一切正常.
有什么建议?
最近,我将我的Xcode版本更新为8.当我启动并运行一个全新的项目时,我在终端中收到以下消息.
2016-09-07 15:28:43.759998 App[7932:128675] subsystem: com.apple.UIKit,
category: HIDEventFiltered, enable_level: 0, persist_level: 0,
default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0,
enable_oversize: 1, privacy_setting: 2, enable_private_data: 0
2016-09-07 15:28:43.762544 App[7932:128675] subsystem: com.apple.UIKit,
category: HIDEventIncoming, enable_level: 0, persist_level: 0,
default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0,
enable_oversize: 1, privacy_setting: 2, enable_private_data: 0
2016-09-07 15:28:43.790817 App[7932:128648] subsystem:
com.apple.BaseBoard, category: MachPort, enable_level: 1,
persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0,
generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0,
enable_private_data: 0
2016-09-07 15:28:43.827962 App[7932:128496] subsystem: …Run Code Online (Sandbox Code Playgroud) 这是我的困境:我需要格式化我的POST请求的主体,就像下面的例子一样,引号非常重要.
'{"url":"https://upload.wikimedia.org/wikipedia/commons/d/de/Bananavarieties.jpg"}'
Run Code Online (Sandbox Code Playgroud)
虽然,我最终想将一个值传递给url,而不是将其硬编码.
我尝试过使用:
const uriInQuotes = "'"+uri+"'";
'{"url":+uriInQuotes+}'
Run Code Online (Sandbox Code Playgroud)
但格式仍然不正确.无论如何,我可以这样做吗?引号是否格式正确?
我在这里先向您的帮助表示感谢.