在真实设备中编译时出错,但在iOS 8中没有编译

时间:2014-10-11 20:27:03

标签: ios objective-c header ios-simulator device

我尝试使用Apple的Reachability编译代码。在模拟器上使用iPhone 5s。

但在iOS中,有些库不包含在设备中。

它告诉我:

/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'

1 个答案:

答案 0 :(得分:0)

<强>解决即可。我似乎使用6.0 Xcode版本而不是6.0.1。它现在有效。