Phonegap local builds fail with media plugin

495 views
Skip to first unread message

Alen Balja

unread,
Mar 11, 2014, 2:40:47 PM3/11/14
to phon...@googlegroups.com
  1. create new project
  2. build for iOS: SUCCESS
  3. add media plugin
  4. build for iOS: FAIL

The following build commands failed: CompileC build/HelloWorld.build/Debug-iphonesimulator/HelloWorld.build/Objects-normal/i386/CDVSound.o HelloWorld/Plugins/org.apache.cordova.media/CDVSound.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler (1 failure) [error] /Projects/Code/hello/platforms/ios/cordova/build: Command failed with exit code 65




Alen Balja

unread,
Mar 11, 2014, 3:08:58 PM3/11/14
to phon...@googlegroups.com

This is how to reproduce the issue.


phonegap create hello
cd hello
phonegap build ios   # WORKS
phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-media.git 
phonegap build ios # FAILS 

Shazron

unread,
Mar 11, 2014, 3:20:15 PM3/11/14
to phonegap
Try adding the latest version of the File plugin first.


--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
 
To compile in the cloud, check out build.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alen Balja

unread,
Mar 11, 2014, 3:22:05 PM3/11/14
to phon...@googlegroups.com
How do I add plugins by version?


You received this message because you are subscribed to a topic in the Google Groups "phonegap" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/phonegap/5UDkV6w95JA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to phonegap+u...@googlegroups.com.

Shazron

unread,
Mar 11, 2014, 3:30:39 PM3/11/14
to phonegap
If you don't specify a version it should get the latest.
To get a specific version, append @X.X.X to the end of the plugin id, where X.X.X is the version number

Alen Balja

unread,
Mar 11, 2014, 3:34:12 PM3/11/14
to phon...@googlegroups.com
Alright, that solved it in this case. Funny how that is not written in the instructions anywhere. Any other such gems, and are they documented? 

Shazron

unread,
Mar 11, 2014, 4:05:21 PM3/11/14
to phonegap
It's a bug in the plugin definition with the latest release. See https://issues.apache.org/jira/browse/CB-6225

Alen Balja

unread,
Mar 11, 2014, 4:46:56 PM3/11/14
to phon...@googlegroups.com
When opening the now successful build in the Xcode there is still an error.

.../Plugins/org.apache.cordova.media/CDVSound.m:21:9: 'CDVFile.h' file not found

Inline image 1





Shazron

unread,
Mar 11, 2014, 5:03:19 PM3/11/14
to phonegap
Seems fine to me

$ cordova create Foobar
$ cd Foobar
$ cordova plugin add org.apache.cordova.file
$ cordova plugin add org.apache.cordova.media
$ cordova platform add ios
$ open -a Xcode platforms/ios
Cmd-B 
** BUILD SUCCESSFUL **

Alen Balja

unread,
Mar 11, 2014, 5:35:01 PM3/11/14
to phon...@googlegroups.com
Seems fine on a new project but not the one I'm working on which started life around 2.7 and is being now upgraded to 3.3. I have uninstalled all the plugins and added them in correct order. Also the config.xml is matching. 

Also getting this:

phonegap build ios
[error] Cannot set property 'is_top_level' of undefined

then I run the build again and it works, but opening in Xcode gives that error with CDVSound.m. I also use the statusbar plugin, is there a similar order in which I have to install some other plugins maybe? 




Reply all
Reply to author
Forward
0 new messages