您的位置:首页 > 其它

xcode7 真机调试

2015-08-11 15:24 429 查看
http://www.skyfox.org/ios-xcode7-debug-device.html

Could not find Developer Disk Image - Xcode 7 - iOS 8.4

I saw that there was a public beta for Xcode, so I installed it. One of the new features is that you don't need to have a Developer Program Account Dingus to upload your app directly to your iPhone. However, on my iPhone 4s, I also did a public beta update
to iOS 8.4, problem being, that there's no Developer Disk Image available for it. Does anyone know where to find it or fix it?

I personally downloaded Xcode 6.4 beta and 7.0 beta and I was very happy to find the solution by searching "8.4" inside the application folder of the 6.4 beta. By doing this, I found the folder "8.4 (12H4125a)" containing the iOS 8.4 image and I copied this
folder to the same path of the 7.0 beta.

Path: /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

When you will reopen Xcode 7 and choose your device, there will be an error message; just click on "fix issue" and that should do it!

Q4关于Xcode调试设备只显示iOS Device或者打开iOS Simulator提示unable to determined device
重启
http://blog.csdn.net/luoshengkim/article/details/47102701
1)xcode7 默认开启bitcode(iwatch需要),则会导致部分第三方框架报错(比如友盟的错误)

youmeng/libMobClickLibrary.a(MobClick.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this
target. for architecture armv7

这是要么更新库,要么可以在 build setting 中,搜索bitcode,并把 enable bitcode 设置为 NO

App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.
应用程序数据传输安全

编译器告诉了我们在应用程序中使用了不安全的明文HTTP请求,如果要解决这一异常我们可以在info.plist文件中设置

应用程序安全传输(App Transport Security)

我们可以向一个应用程序的Info.plist文件中添加声明指定它需要保密通信领域。ATS防止网络传输数据意外泄漏,提供安全的默认行为,易于采用。因此,无论你是创建一个新的应用程序或更新现有的。你应该采用ATS

如果你正在开发一个新的应用程序,你应该使用HTTPS安全协议。如果你有一个现有的应用程序,你应该应该尽可能地使用HTTPS保证应用程序的安全。

像这样你可以在Info.plist文件中添加如下项:

<key>NSAppTransportSecurity</key>

<dict>

  <key>NSExceptionDomains</key>

  <dict>

    <key>yourserver.com</key>

    <dict>

      <!--Include to allow subdomains-->

      <key>NSIncludesSubdomains</key>

      <true/>

      <!--Include to allow HTTP requests-->

      <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>

      <true/>

      <!--Include to specify minimum TLS version-->

      <key>NSTemporaryExceptionMinimumTLSVersion</key>

      <string>TLSv1.1</string>

    </dict>

  </dict>

</dict>

当然,如果不想使用ATS,你可以在Info.plist文件中添加如下项:

<key>NSAppTransportSecurity</key>

<dict>

  <!--Include to allow all connections (DANGER)-->

  <key>NSAllowsArbitraryLoads</key>

      <true/>

</dict>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: