我在我的Mac上下载了Xcode 7,但似乎iOS 9模拟器没有互联网连接, 我尝试了#34;重置内容和设置"我重新启动了模拟器和Xcode,但它似乎没有用,
任何解决方案? 谢谢
答案 0 :(得分:5)
答案 1 :(得分:3)
你检查过调试器了吗?
您是否收到传输安全已阻止明文HTTP (HTTP://)
如果是这样,请查看您的info.plist并将您的NSAllowsArbitraryLoads设置为YES。如果您没有密钥,请将其添加到plist文件中。
use framework "Foundation"
use scripting additions
set formatter to current application's NSNumberFormatter's alloc()'s init()
set numberStyle of formatter to 5 -- NSNumberFormatterSpellOutStyle
tell application "Finder" to set number_of_items to (count items of desktop)
if number_of_items is 1 then
set correct_grammar to "is"
set s_letter to ""
else
set correct_grammar to "are"
set s_letter to "s"
end if
set numberString to (formatter's stringFromNumber:number_of_items) as text
tell application "System Events"
display dialog "There " & correct_grammar & " " & numberString & " file" & s_letter & " in this folder." buttons {"Yes", "Exit"} with title "Test"
end tell