![](/img/trans.png)
[英]“Variable Undeclared” error when compiling to iOS Device, but not for Simulator
[英]Error compiling in real device but not simulator iOS 8
我正在嘗試使用Apple的可達性來編譯代碼。 在模擬器上使用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'
解決了 。 看來我用的是6.0 Xcode版本而不是6.0.1。 現在可以使用了。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.