Issue Type: Bug Bug
Assignee: Unassigned
Components: cordova
Created: 31/Oct/13 7:50 AM
Description:

The build of a Cordova iOS project which contains the aerogear-pushplugin-cordova fails unless the SystemConfiguration library is added through XCode.

Errors which appear during build:
Undefined symbols for architecture i386:
"_SCNetworkReachabilityCreateWithName", referenced from:
-[AFHTTPClient startMonitoringNetworkReachability] in libPods.a(AFHTTPClient.o)
"_SCNetworkReachabilityGetFlags", referenced from:
-[AFHTTPClient startMonitoringNetworkReachability] in libPods.a(AFHTTPClient.o)
"_SCNetworkReachabilityScheduleWithRunLoop", referenced from:
-[AFHTTPClient startMonitoringNetworkReachability] in libPods.a(AFHTTPClient.o)
"_SCNetworkReachabilitySetCallback", referenced from:
-[AFHTTPClient startMonitoringNetworkReachability] in libPods.a(AFHTTPClient.o)
"_SCNetworkReachabilityUnscheduleFromRunLoop", referenced from:
-[AFHTTPClient stopMonitoringNetworkReachability] in libPods.a(AFHTTPClient.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

This issue seems similar to the one mentioned by Matthias Wessendorf https://github.com/AFNetworking/AFNetworking/issues/670

The workaround is:
1. Open workspace in Xcode
2. Build Phases --> Link Binaries With Libraries
3. Click +
4. Add the SystemConfiguration framework

I'm wondering whether the above procedure could be somehow automatized.

Project: AeroGear
Priority: Major Major
Reporter: Tolis Emmanouilidis
Security Level: Public (Everyone can see)
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira