Ionic package build ios fails with error in ionic keyboard

When submitting our app to ionic.io’s package feature the ios build fails with the following error

CompileC build/mms-app.build/Debug-iphoneos/mms-app.build/Objects-normal/armv7/IonicKeyboard.o mms-app/Plugins/ionic-plugin-keyboard/IonicKeyboard.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/package/workspace/apps-41404b43-6/cordova/platforms/ios
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -fobjc-arc -fmodules -gmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/var/folders/kc/f8g8tr7n1054j1nzrkkvyzpr0000gq/C/org.llvm.clang/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -miphoneos-version-min=8.0 -g -fvisibility=hidden -Wno-sign-conversion -iquote /Users/package/workspace/apps-41404b43-6/cordova/platforms/ios/build/mms-app.build/Debug-iphoneos/mms-app.build/mms-app-generated-files.hmap -I/Users/package/workspace/apps-41404b43-6/cordova/platforms/ios/build/mms-app.build/Debug-iphoneos/mms-app.build/mms-app-own-target-headers.hmap -I/Users/package/workspace/apps-41404b43-6/cordova/platforms/ios/build/mms-app.build/Debug-iphoneos/mms-app.build/mms-app-all-target-headers.hmap -iquote /Users/package/workspace/apps-41404b43-6/cordova/platforms/ios/build/mms-app.build/Debug-iphoneos/mms-app.build/mms-app-project-headers.hmap -I/Users/package/workspace/apps-41404b43-6/cordova/platforms/ios/build/device/include -I/Users/package/workspace/apps-41404b43-6/cordova/platforms/ios/build/device/usr/local/lib/include -I/Users/package/workspace/apps-41404b43-6/cordova/platforms/ios/build/UninstalledProducts/include -I/Users/package/workspace/apps-41404b43-6/cordova/platforms/ios/build/UninstalledProducts/iphoneos/include -I/Users/package/workspace/apps-41404b43-6/cordova/platforms/ios/build/device -I/Users/package/workspace/apps-41404b43-6/cordova/platforms/ios/build/mms-app.build/Debug-iphoneos/mms-app.build/DerivedSources/armv7 -I/Users/package/workspace/apps-41404b43-6/cordova/platforms/ios/build/mms-app.build/Debug-iphoneos/mms-app.build/DerivedSources -F/Users/package/workspace/apps-41404b43-6/cordova/platforms/ios/build/device -include /Users/package/workspace/apps-41404b43-6/cordova/platforms/ios/build/sharedpch/mms-app-Prefix-cgmgfgibraiuizaxiwhxiuxkkybh/mms-app-Prefix.pch -MMD -MT dependencies -MF /Users/package/workspace/apps-41404b43-6/cordova/platforms/ios/build/mms-app.build/Debug-iphoneos/mms-app.build/Objects-normal/armv7/IonicKeyboard.d --serialize-diagnostics /Users/package/workspace/apps-41404b43-6/cordova/platforms/ios/build/mms-app.build/Debug-iphoneos/mms-app.build/Objects-normal/armv7/IonicKeyboard.dia -c /Users/package/workspace/apps-41404b43-6/cordova/platforms/ios/mms-app/Plugins/ionic-plugin-keyboard/IonicKeyboard.m -o /Users/package/workspace/apps-41404b43-6/cordova/platforms/ios/build/mms-app.build/Debug-iphoneos/mms-app.build/Objects-normal/armv7/IonicKeyboard.o
In file included from /Users/package/workspace/apps-41404b43-6/cordova/platforms/ios/mms-app/Plugins/ionic-plugin-keyboard/IonicKeyboard.m:1:
/Users/package/workspace/apps-41404b43-6/cordova/platforms/ios/mms-app/Plugins/ionic-plugin-keyboard/IonicKeyboard.h:8:5: error: unknown type name 'Method'
    Method wkMethod, uiMethod;

Since the error is in the keyboard plugin I’m not sure what to try.

  <plugin name="ionic-plugin-keyboard" spec="~2.2.1"/>

Any suggestions?

4 Likes

Same here. ionic package build iOS started failing today with the same error message. Yesterday building worked. (no changes to code)

IonicKeyboard.h:8:5: error: unknown type name 'Method'
Method wkMethod, uiMethod;
1 Like

I have the same error, and yesterday it worked. I tweeted ioniccreator and I’m waiting for their answer.

1 Like

Same for me working yesterday now the following error:

Plugins/ionic-plugin-keyboard/IonicKeyboard.m:161:5: note: include the header <Foundation/NSObjCRuntime.h> or explicitly provide a declaration for ‘NSLog’

1 Like

Same for me,

I have been trying all day to build for IOS but no luck.

Plugins/ionic-plugin-keyboard/IonicKeyboard.h:8:5: error: unknown type name 'Method’
Method wkMethod, uiMethod;
Plugins/ionic-plugin-keyboard/IonicKeyboard.m:161:5: warning: implicitly declaring library function ‘NSLog’ with type ‘void (id, …)’

NSLog(@"Showing keyboard not supported in iOS due to platform limitations.");
1 Like

I am having exactly the same issue as you all.

Has anybody received any help or had flashes of inspiration and managed to fix this yet?

Not yet can’t see anything on twitter and waiting support email reply

Thanks yall! We’ll take a look at see whats up.

2 Likes

Just updating this.
The cloud team is aware and investigating the issue.
Thanks!

1 Like

Thanks for the update

Thanks, just give us a shout if you need more information.

Any news regarding this issue yet?

Hi, I am having the same build issue.
I have app built with ionic2 framework if that matters.

Any updates on this matter?

Same here guys.
Error still persists:

/Plugins/ionic-plugin-keyboard/IonicKeyboard.h:8:5: error: unknown type name 'Method'
    Method wkMethod, uiMethod;
    ^

Regards

FWIW, I removed the keyboard plugin and it just started erroring on another plugin (EmailComposer). Removed that, and error moved to the Deploy plugin.

1 Like

The same here. Removing any plugin chains the error to another one.

Yes Same here ;( Cannot test IOS app since yesterday

1 Like

I have same error ;/

ionic-plugin-keyboard/IonicKeyboard.h:8:5: error: unknown type name ‘Method’

1 Like

Is there another way of building my ios application without using apps.ionic.io?