You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "DotNetWise (JIRA)" <ji...@apache.org> on 2014/04/15 10:45:18 UTC
[jira] [Comment Edited] (CB-6443)
cordova-plugin-network-information breaks the build
[ https://issues.apache.org/jira/browse/CB-6443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13969345#comment-13969345 ]
DotNetWise edited comment on CB-6443 at 4/15/14 8:44 AM:
---------------------------------------------------------
{code:bash}
cordova plugin add https://github.com/apache/cordova-plugin-network-information.git
Fetching plugin "https://github.com/apache/cordova-plugin-network-information.git" via git clone
Installing "org.apache.cordova.network-information" for android
Installing "org.apache.cordova.network-information" for ios
Installing "org.apache.cordova.network-information" for wp8
cordova build ios
... build logs...
Undefined symbols for architecture i386:
"_SCNetworkReachabilityCreateWithAddress", referenced from:
+[CDVReachability reachabilityWithAddress:] in CDVReachability.o
"_SCNetworkReachabilityCreateWithName", referenced from:
+[CDVReachability reachabilityWithHostName:] in CDVReachability.o
"_SCNetworkReachabilityGetFlags", referenced from:
-[CDVReachability connectionRequired] in CDVReachability.o
-[CDVReachability currentReachabilityStatus] in CDVReachability.o
"_SCNetworkReachabilityScheduleWithRunLoop", referenced from:
-[CDVReachability startNotifier] in CDVReachability.o
"_SCNetworkReachabilitySetCallback", referenced from:
-[CDVReachability startNotifier] in CDVReachability.o
"_SCNetworkReachabilityUnscheduleFromRunLoop", referenced from:
-[CDVReachability stopNotifier] in CDVReachability.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
{code}
How can I fix it?
was (Author: dotnetwise):
```
cordova plugin add https://github.com/apache/cordova-plugin-network-information.git
Fetching plugin "https://github.com/apache/cordova-plugin-network-information.git" via git clone
Installing "org.apache.cordova.network-information" for android
Installing "org.apache.cordova.network-information" for ios
Installing "org.apache.cordova.network-information" for wp8
cordova build ios
... build logs...
Undefined symbols for architecture i386:
"_SCNetworkReachabilityCreateWithAddress", referenced from:
+[CDVReachability reachabilityWithAddress:] in CDVReachability.o
"_SCNetworkReachabilityCreateWithName", referenced from:
+[CDVReachability reachabilityWithHostName:] in CDVReachability.o
"_SCNetworkReachabilityGetFlags", referenced from:
-[CDVReachability connectionRequired] in CDVReachability.o
-[CDVReachability currentReachabilityStatus] in CDVReachability.o
"_SCNetworkReachabilityScheduleWithRunLoop", referenced from:
-[CDVReachability startNotifier] in CDVReachability.o
"_SCNetworkReachabilitySetCallback", referenced from:
-[CDVReachability startNotifier] in CDVReachability.o
"_SCNetworkReachabilityUnscheduleFromRunLoop", referenced from:
-[CDVReachability stopNotifier] in CDVReachability.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
```
How can I fix it?
> cordova-plugin-network-information breaks the build
> ---------------------------------------------------
>
> Key: CB-6443
> URL: https://issues.apache.org/jira/browse/CB-6443
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Network Information
> Affects Versions: 3.4.0
> Environment: ios
> Reporter: DotNetWise
> Priority: Blocker
>
> Adding the cordova-plugin-network-information plugin will break the linker and when you do cordova build ios --release --device will FAIL the build.
> This is after I have upgraded to cordova cli 3.4.1
--
This message was sent by Atlassian JIRA
(v6.2#6252)