简体   繁体   English

在真实设备中编译但在模拟器iOS 8中编译时出错

[英]Error compiling in real device but not simulator iOS 8

I'm trying to compile a code using Reachability by Apple. 我正在尝试使用Apple的可达性来编译代码。 Using an iPhone 5s on the simulator works. 在模拟器上使用iPhone 5s是可行的。

But in iOS it's like some libraries are not included in the device. 但是在iOS中,设备中似乎不包含某些库。

It tells me that: 它告诉我:

/Users/rebouhaymen/Desktop/Projets/UrBike/UrBike/UrBike/UrBike-Bridging-Header.h:6:9: note: in file included from /Users/rebouhaymen/Desktop/Projets/UrBike/UrBike/UrBike/UrBike-Bridging-Header.h:6:
#import "Reachability.h"
        ^
/Users/rebouhaymen/Desktop/Projets/UrBike/UrBike/UrBike/Tools/Reachability/Reachability.h:49:9: error: 'SystemConfiguration/SystemConfiguration.h' file not found
#import <SystemConfiguration/SystemConfiguration.h>
        ^
<unknown>:0: error: failed to import bridging header '/Users/rebouhaymen/Desktop/Projets/UrBike/UrBike/UrBike/UrBike-Bridging-Header.h'

Resolved . 解决了 It seems I used 6.0 Xcode version instead 6.0.1. 看来我用的是6.0 Xcode版本而不是6.0.1。 It works now. 现在可以使用了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 编译到iOS设备时出现“可变未声明”错误,但不适用于模拟器 - “Variable Undeclared” error when compiling to iOS Device, but not for Simulator 在真实设备上使用openCV框架编译iOS应用时出错 - Error while compiling iOS app with openCV framework on real device Firebase与模拟器连接,但未在真实设备iOS中连接 - Firebase connecting with simulator but not in real device iOS free()使用iOS Simulator,但不能在实际设备上使用 - free() working with iOS Simulator but not on real device iOS模拟器崩溃而真实设备没有崩溃 - iOS Simulator crashes while real device does not iOS应用可在模拟器上运行,但不能在真实设备上运行 - iOS app works on simulator but not on real device 编译iOS模拟器+ iOS的GnuPG时出错 - Error while compiling GnuPG for iOS Simulator + iOS 为什么在为设备编译LiveCode iOS外部程序时却出现此错误,但对于模拟器却可以正常编译? - Why do I get this error when compiling a LiveCode iOS external for device but it compiles fine for the simulator? 如何让Appium定位到真正的iOS设备与模拟器设备 - How to get Appium to target a real iOS device vs a simulator device iOS App在Simulator上运行正常,但在真实的iOS设备上崩溃 - iOS App works fine with Simulator but Crashes with a real iOS device
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM