2014-06-25 14 views
7

Merhaba, yeni bir cordova projesi için yeni bir yapıyla başladım ve bu eklentiyi org.apache.cordova.network-information'ini yüklemem gerekiyor.Cordova, org.apache.cordova.network-information'i yükledikten sonra iOS'ta hatayla sonuçlandığını gösteriyor

Ben cordova 3.5.0 kullanıyorum. Ben Xcode dan inşa etmeye çalışırsanız

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 ** 


The following build commands failed: 
    Ld build/emulator/EconnectHybrid.app/EconnectHybrid normal i386 
(1 failure) 
Command finished with error code 65: /Users/dev/Development/ncoi-econnect-hybrid/platforms/ios/cordova/build 
Error: /Users/dev/Development/ncoi-econnect-hybrid/platforms/ios/cordova/build: Command failed with exit code 65 
    at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23) 
    at ChildProcess.emit (events.js:98:17) 
    at maybeClose (child_process.js:755:16) 
    at Process.ChildProcess._handle.onexit (child_process.js:822:5) 
isdc30408:ncoi-econnect-hybrid dev$ 

bu hatayı alıyorum:

yüklemeden ve cordova yapı çalıştırdıktan sonra bu hata var

Undefined symbols for architecture armv7: 
    "_SCNetworkReachabilityGetFlags", referenced from: 
     -[CDVReachability connectionRequired] in CDVReachability.o 
     -[CDVReachability currentReachabilityStatus] in CDVReachability.o 
    "_SCNetworkReachabilityCreateWithAddress", referenced from: 
     +[CDVReachability reachabilityWithAddress:] in CDVReachability.o 
    "_SCNetworkReachabilityCreateWithName", referenced from: 
     +[CDVReachability reachabilityWithHostName:] in CDVReachability.o 
    "_SCNetworkReachabilityScheduleWithRunLoop", referenced from: 
     -[CDVReachability startNotifier] in CDVReachability.o 
    "_SCNetworkReachabilityUnscheduleFromRunLoop", referenced from: 
     -[CDVReachability stopNotifier] in CDVReachability.o 
    "_SCNetworkReachabilitySetCallback", referenced from: 
     -[CDVReachability startNotifier] in CDVReachability.o 
ld: symbol(s) not found for architecture armv7 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

cevap

8

olması gerekiyordu SystemConfiguration.framework gibi geliyor org.apache.cordova.network-bilgi eklentisi tarafından otomatik olarak eklenmiştir, ancak değildi.

elle aşağıdaki yorumların başına Build Phases > Link Binary With Libraries içinde SystemConfiguration.framework ekleyerek sona erdi ve benim için düzelttim:

https://issues.apache.org/jira/browse/CB-6443

+0

Ha, bu süre beni deli edilmiştir. 1! – Jacksonkr

İlgili konular