You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Todd Moscinski (JIRA)" <ji...@apache.org> on 2014/08/27 16:17:59 UTC
[jira] [Closed] (CB-7381) iOS compile fails with certain plugins
[ https://issues.apache.org/jira/browse/CB-7381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Todd Moscinski closed CB-7381.
------------------------------
Resolution: Fixed
Fix Version/s: 3.5.0
I was using cordova 3.5.0-0.2.4. I just realized this morning that it is fixed in 3.5.0-0.2.7 so this is no longer an issue.
> iOS compile fails with certain plugins
> --------------------------------------
>
> Key: CB-7381
> URL: https://issues.apache.org/jira/browse/CB-7381
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Contacts
> Affects Versions: 3.5.0
> Environment: iOS
> Reporter: Todd Moscinski
> Priority: Minor
> Fix For: 3.5.0
>
>
> cordova create app1
> cd app1
> cordova plugin add org.apache.cordova.vibration
> cordova plugin add org.apache.cordova.contacts
> cordova platform add ios
> cordova compile
> The compile fails with a long error:
> Undefined symbols for architecture i386:
> "_ABAddressBookAddRecord", referenced from:
> ___20-[CDVContacts save:]_block_invoke_2 in CDVContacts.o
> "_ABAddressBookCopyArrayOfAllPeople", referenced from:
> ___22-[CDVContacts search:]_block_invoke_2 in CDVContacts.o
> "_ABAddressBookCreateWithOptions", referenced from:
> -[CDVContacts peoplePickerNavigationControllerDidCancel:] in CDVContacts.o
> -[CDVAddressBookHelper createAddressBook:] in CDVContacts.o
> "_ABAddressBookGetPersonWithRecordID", referenced from:
> ___30-[CDVContacts displayContact:]_block_invoke in CDVContacts.o
> .
> . (omitting similar lines)
> .
> 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/HelloCordova.app/HelloCordova normal i386
> (1 failure)
> Error: /Users/toddmosc/app1/platforms/ios/cordova/build: Command failed with exit code 65
> at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/src/superspawn.js:112:23)
> at ChildProcess.EventEmitter.emit (events.js:98:17)
> at maybeClose (child_process.js:743:16)
> at Process.ChildProcess._handle.onexit (child_process.js:810:5)
> It seems like some work the prepare step is doing in the platform add needs to come before it adds in the plugins, also inside the platform add. Doing a prepare after the platform add will fix the build, but it shouldn't be necessary since the platform add does a prepare.
--
This message was sent by Atlassian JIRA
(v6.2#6252)