Search code examples
ioscordovaphonegap-pluginscordova-plugins

Cordova ActionSheet plugin


I am trying to use the ActionSheet plugin found at https://github.com/acyl/phonegap-plugins-1

following the setup instructions:

Using this plugin requires Cordova iOS.

Make sure your Xcode project has been updated for Cordova
Drag and drop the ActionSheet folder from Finder to your Plugins folder in XCode, using         "Create groups for any added folders"
Add the .js files to your www folder on disk, and add reference(s) to the .js files using
Add new entry with key ActionSheet and value ActionSheet to Plugins in     Cordova.plist/Cordova.plist

i'm not sure about the last step but i found HelloCordova-Info.plist and added an entry there.

compiling fails:

** BUILD FAILED **


The following build commands failed:CompileC build/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/Objects-normal/i386/ActionSheet-2887A8A627033B74.o /Users/Anthony/dev/phonegap_plugins/phonegap-plugins-1-master/iOS/ActionSheet/ActionSheet.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
Ld build/emulator/HelloCordova.app/HelloCordova normal i386
GenerateDSYMFile build/emulator/HelloCordova.app.dSYM build/emulator/HelloCordova.app/HelloCordova

(3 failures)


Solution

  • try this one, I just created it yesterday for iOS and it works nicely: https://github.com/EddyVerbruggen/cordova-plugin-actionsheet

    The Cordova ActionSheet plugin in action