Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to use in PGB #12

Closed
wwannous opened this issue Dec 12, 2019 · 2 comments
Closed

unable to use in PGB #12

wwannous opened this issue Dec 12, 2019 · 2 comments

Comments

@wwannous
Copy link

wwannous commented Dec 12, 2019

i get an error on build.
no type or protocol named 'ASAuthorizationScope

SignInWithApple.m:14:12: error: no type or protocol named 'ASAuthorizationScope'

  • (NSArray *)convertScopes: (NSArray<NSNumber *> *)scopes
    ^
    /project/MyClub/Plugins/cordova-plugin-sign-in-with-apple/SignInWithApple.m:27:4: error: expected a type
  • (ASAuthorizationScope)convertScope: (NSNumber *)scope

can anyone help

@falcon8823
Copy link
Member

You should use the latest XCode.

@campagna91
Copy link

campagna91 commented Jan 27, 2020

Also with cordova build command.

I'm using the last version of XCode with the following configuration:

XCode: 11.3.1 (11C505)
cordova: 9.0.0 ([email protected])
cordova-ios: 5.1.0

and i still see more than one errors that break build. Here following a piece of log

[exec] /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-cache-path=/Users/username/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/username/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Wunreachable-code -Wno-implicit-atomic-properties -Wno-objc-interface-ivars -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -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-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DWK_WEB_VIEW_ONLY=0 -DDEBUG=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.4.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -miphoneos-version-min=10.0 -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -iquote /Users/username/Library/Developer/Xcode/DerivedData/com.company.appname.custom.ch20-aqojepblusoqpdhfxyksgwhjbgzt/Build/Intermediates.noindex/ArchiveIntermediates/com.company.appname.custom.ch20/IntermediateBuildFilesPath/com.company.appname.custom.ch20.build/Debug-iphoneos/com.company.appname.custom.ch20.build/com.company.appname.custom.ch20-generated-files.hmap -I/Users/username/Library/Developer/Xcode/DerivedData/com.company.appname.custom.ch20-aqojepblusoqpdhfxyksgwhjbgzt/Build/Intermediates.noindex/ArchiveIntermediates/com.company.appname.custom.ch20/IntermediateBuildFilesPath/com.company.appname.custom.ch20.build/Debug-iphoneos/com.company.appname.custom.ch20.build/com.company.appname.custom.ch20-own-target-headers.hmap -I/Users/username/Library/Developer/Xcode/DerivedData/com.company.appname.custom.ch20-aqojepblusoqpdhfxyksgwhjbgzt/Build/Intermediates.noindex/ArchiveIntermediates/com.company.appname.custom.ch20/IntermediateBuildFilesPath/com.company.appname.custom.ch20.build/Debug-iphoneos/com.company.appname.custom.ch20.build/com.company.appname.custom.ch20-all-target-headers.hmap -iquote /Users/username/Library/Developer/Xcode/DerivedData/com.company.appname.custom.ch20-aqojepblusoqpdhfxyksgwhjbgzt/Build/Intermediates.noindex/ArchiveIntermediates/com.company.appname.custom.ch20/IntermediateBuildFilesPath/com.company.appname.custom.ch20.build/Debug-iphoneos/com.company.appname.custom.ch20.build/com.company.appname.custom.ch20-project-headers.hmap -I/Users/username/Documents/company/mobile/app_type-wrapper/app_type/jera.goweb.mobile.app_type/JERA_GOWEB_app_type_APP/app_type/appbuilds/compiled/DEVELOPMENT/APPNAME.50.50.50/ios/com.company.appname.custom.ch20/platforms/ios/build/device/include -I/Users/username/Library/Developer/Xcode/DerivedData/com.company.appname.custom.ch20-aqojepblusoqpdhfxyksgwhjbgzt/Build/Intermediates.noindex/ArchiveIntermediates/com.company.appname.custom.ch20/InstallationBuildProductsLocation/Applications/usr/local/lib/include -I/Users/username/Library/Developer/Xcode/DerivedData/com.company.appname.custom.ch20-aqojepblusoqpdhfxyksgwhjbgzt/Build/Intermediates.noindex/ArchiveIntermediates/com.company.appname.custom.ch20/IntermediateBuildFilesPath/UninstalledProducts/include -I/Users/username/Library/Developer/Xcode/DerivedData/com.company.appname.custom.ch20-aqojepblusoqpdhfxyksgwhjbgzt/Build/Intermediates.noindex/ArchiveIntermediates/com.company.appname.custom.ch20/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/include -I/Users/username/Documents/company/mobile/app_type-wrapper/app_type/jera.goweb.mobile.app_type/JERA_GOWEB_app_type_APP/app_type/appbuilds/compiled/DEVELOPMENT/APPNAME.50.50.50/ios/com.company.appname.custom.ch20/platforms/ios/build/device -I/Users/username/Library/Developer/Xcode/DerivedData/com.company.appname.custom.ch20-aqojepblusoqpdhfxyksgwhjbgzt/Build/Intermediates.noindex/ArchiveIntermediates/com.company.appname.custom.ch20/IntermediateBuildFilesPath/com.company.appname.custom.ch20.build/Debug-iphoneos/com.company.appname.custom.ch20.build/DerivedSources-normal/armv7 -I/Users/username/Library/Developer/Xcode/DerivedData/com.company.appname.custom.ch20-aqojepblusoqpdhfxyksgwhjbgzt/Build/Intermediates.noindex/ArchiveIntermediates/com.company.appname.custom.ch20/IntermediateBuildFilesPath/com.company.appname.custom.ch20.build/Debug-iphoneos/com.company.appname.custom.ch20.build/DerivedSources/armv7 -I/Users/username/Library/Developer/Xcode/DerivedData/com.company.appname.custom.ch20-aqojepblusoqpdhfxyksgwhjbgzt/Build/Intermediates.noindex/ArchiveIntermediates/com.company.appname.custom.ch20/IntermediateBuildFilesPath/com.company.appname.custom.ch20.build/Debug-iphoneos/com.company.appname.custom.ch20.build/DerivedSources -F/Users/username/Documents/company/mobile/app_type-wrapper/app_type/jera.goweb.mobile.app_type/JERA_GOWEB_app_type_APP/app_type/appbuilds/compiled/DEVELOPMENT/APPNAME.50.50.50/ios/com.company.appname.custom.ch20/platforms/ios/build/device -Fcom.company.appname.custom.ch20/Plugins/cordova-plugin-facebook4 -Fcom.company.appname.custom.ch20/Plugins/cordova-plugin-firebase -include /Users/username/Documents/company/mobile/app_type-wrapper/app_type/jera.goweb.mobile.app_type/JERA_GOWEB_app_type_APP/app_type/appbuilds/compiled/DEVELOPMENT/APPNAME.50.50.50/ios/com.company.appname.custom.ch20/platforms/ios/build/sharedpch/com.company.appname.custom.ch20-Prefix-afqguwxoorbkpmchlolrulalrfuf/com.company.appname.custom.ch20-Prefix.pch -MMD -MT dependencies -MF /Users/username/Library/Developer/Xcode/DerivedData/com.company.appname.custom.ch20-aqojepblusoqpdhfxyksgwhjbgzt/Build/Intermediates.noindex/ArchiveIntermediates/com.company.appname.custom.ch20/IntermediateBuildFilesPath/com.company.appname.custom.ch20.build/Debug-iphoneos/com.company.appname.custom.ch20.build/Objects-normal/armv7/SignInWithApple-DD7F3D8A8AFD0072.d --serialize-diagnostics /Users/username/Library/Developer/Xcode/DerivedData/com.company.appname.custom.ch20-aqojepblusoqpdhfxyksgwhjbgzt/Build/Intermediates.noindex/ArchiveIntermediates/com.company.appname.custom.ch20/IntermediateBuildFilesPath/com.company.appname.custom.ch20.build/Debug-iphoneos/com.company.appname.custom.ch20.build/Objects-normal/armv7/SignInWithApple-DD7F3D8A8AFD0072.dia -c /Users/username/Documents/company/mobile/app_type-wrapper/app_type/jera.goweb.mobile.app_type/JERA_GOWEB_app_type_APP/app_type/appbuilds/compiled/DEVELOPMENT/APPNAME.50.50.50/ios/com.company.appname.custom.ch20/platforms/ios/com.company.appname.custom.ch20/Plugins/cordova-plugin-sign-in-with-apple/SignInWithApple.m -o /Users/username/Library/Developer/Xcode/DerivedData/com.company.appname.custom.ch20-aqojepblusoqpdhfxyksgwhjbgzt/Build/Intermediates.noindex/ArchiveIntermediates/com.company.appname.custom.ch20/IntermediateBuildFilesPath/com.company.appname.custom.ch20.build/Debug-iphoneos/com.company.appname.custom.ch20.build/Objects-normal/armv7/SignInWithApple-DD7F3D8A8AFD0072.o [exec] /Users/username/Documents/company/mobile/app_type-wrapper/app_type/jera.goweb.mobile.app_type/JERA_GOWEB_app_type_APP/app_type/appbuilds/compiled/DEVELOPMENT/APPNAME.50.50.50/ios/com.company.appname.custom.ch20/platforms/ios/com.company.appname.custom.ch20/Plugins/cordova-plugin-sign-in-with-apple/SignInWithApple.m:14:12: error: no type or protocol named 'ASAuthorizationScope' [exec] - (NSArray<ASAuthorizationScope> *)convertScopes: (NSArray<NSNumber *> *)scopes [exec] ^ [exec] /Users/username/Documents/company/mobile/app_type-wrapper/app_type/jera.goweb.mobile.app_type/JERA_GOWEB_app_type_APP/app_type/appbuilds/compiled/DEVELOPMENT/APPNAME.50.50.50/ios/com.company.appname.custom.ch20/platforms/ios/com.company.appname.custom.ch20/Plugins/cordova-plugin-sign-in-with-apple/SignInWithApple.m:27:4: error: expected a type [exec] - (ASAuthorizationScope)convertScope: (NSNumber *)scope [exec] ^ [exec] /Users/username/Documents/company/mobile/app_type-wrapper/app_type/jera.goweb.mobile.app_type/JERA_GOWEB_app_type_APP/app_type/appbuilds/compiled/DEVELOPMENT/APPNAME.50.50.50/ios/com.company.appname.custom.ch20/platforms/ios/com.company.appname.custom.ch20/Plugins/cordova-plugin-sign-in-with-apple/SignInWithApple.m:75:34: error: expected a type [exec] - (void)authorizationController:(ASAuthorizationController *)controller [exec] ^ [exec] /Users/username/Documents/company/mobile/app_type-wrapper/app_type/jera.goweb.mobile.app_type/JERA_GOWEB_app_type_APP/app_type/appbuilds/compiled/DEVELOPMENT/APPNAME.50.50.50/ios/com.company.appname.custom.ch20/platforms/ios/com.company.appname.custom.ch20/Plugins/cordova-plugin-sign-in-with-apple/SignInWithApple.m:76:43: error: expected ')' [exec] didCompleteWithAuthorization:(nonnull ASAuthorization *)authorization [exec] ^ [exec] /Users/username/Documents/company/mobile/app_type-wrapper/app_type/jera.goweb.mobile.app_type/JERA_GOWEB_app_type_APP/app_type/appbuilds/compiled/DEVELOPMENT/APPNAME.50.50.50/ios/com.company.appname.custom.ch20/platforms/ios/com.company.appname.custom.ch20/Plugins/cordova-plugin-sign-in-with-apple/SignInWithApple.m:76:34: note: to match this '(' [exec] didCompleteWithAuthorization:(nonnull ASAuthorization *)authorization [exec] ^ [exec] /Users/username/Documents/company/mobile/app_type-wrapper/app_type/jera.goweb.mobile.app_type/JERA_GOWEB_app_type_APP/app_type/appbuilds/compiled/DEVELOPMENT/APPNAME.50.50.50/ios/com.company.appname.custom.ch20/platforms/ios/com.company.appname.custom.ch20/Plugins/cordova-plugin-sign-in-with-apple/SignInWithApple.m:154:34: error: expected a type [exec] - (void)authorizationController:(ASAuthorizationController *)controller [exec] ^ [exec] /Users/username/Documents/company/mobile/app_type-wrapper/app_type/jera.goweb.mobile.app_type/JERA_GOWEB_app_type_APP/app_type/appbuilds/compiled/DEVELOPMENT/APPNAME.50.50.50/ios/com.company.appname.custom.ch20/platforms/ios/com.company.appname.custom.ch20/Plugins/cordova-plugin-sign-in-with-apple/SignInWithApple.m:16:18: error: no type or protocol named 'ASAuthorizationScope' [exec] NSMutableArray<ASAuthorizationScope> *convertedScopes = [NSMutableArray array]; [exec] ^ [exec] /Users/username/Documents/company/mobile/app_type-wrapper/app_type/jera.goweb.mobile.app_type/JERA_GOWEB_app_type_APP/app_type/appbuilds/compiled/DEVELOPMENT/APPNAME.50.50.50/ios/com.company.appname.custom.ch20/platforms/ios/com.company.appname.custom.ch20/Plugins/cordova-plugin-sign-in-with-apple/SignInWithApple.m:19:5: error: use of undeclared identifier 'ASAuthorizationScope' [exec] ASAuthorizationScope convertedScope = [self convertScope:scope]; [exec] ^ [exec] /Users/username/Documents/company/mobile/app_type-wrapper/app_type/jera.goweb.mobile.app_type/JERA_GOWEB_app_type_APP/app_type/appbuilds/compiled/DEVELOPMENT/APPNAME.50.50.50/ios/com.company.appname.custom.ch20/platforms/ios/com.company.appname.custom.ch20/Plugins/cordova-plugin-sign-in-with-apple/SignInWithApple.m:20:9: error: use of undeclared identifier 'convertedScope'; did you mean 'convertedScopes'? [exec] if (convertedScope != nil) { [exec] ^~~~~~~~~~~~~~ [exec] convertedScopes [exec] /Users/username/Documents/company/mobile/app_type-wrapper/app_type/jera.goweb.mobile.app_type/JERA_GOWEB_app_type_APP/app_type/appbuilds/compiled/DEVELOPMENT/APPNAME.50.50.50/ios/com.company.appname.custom.ch20/platforms/ios/com.company.appname.custom.ch20/Plugins/cordova-plugin-sign-in-with-apple/SignInWithApple.m:16:41: note: 'convertedScopes' declared here [exec] NSMutableArray<ASAuthorizationScope> *convertedScopes = [NSMutableArray array]; [exec] ^ [exec] /Users/username/Documents/company/mobile/app_type-wrapper/app_type/jera.goweb.mobile.app_type/JERA_GOWEB_app_type_APP/app_type/appbuilds/compiled/DEVELOPMENT/APPNAME.50.50.50/ios/com.company.appname.custom.ch20/platforms/ios/com.company.appname.custom.ch20/Plugins/cordova-plugin-sign-in-with-apple/SignInWithApple.m:21:34: error: use of undeclared identifier 'convertedScope'; did you mean 'convertedScopes'? [exec] [convertedScopes addObject:convertedScope]; [exec] ^~~~~~~~~~~~~~ [exec] convertedScopes [exec] /Users/username/Documents/company/mobile/app_type-wrapper/app_type/jera.goweb.mobile.app_type/JERA_GOWEB_app_type_APP/app_type/appbuilds/compiled/DEVELOPMENT/APPNAME.50.50.50/ios/com.company.appname.custom.ch20/platforms/ios/com.company.appname.custom.ch20/Plugins/cordova-plugin-sign-in-with-apple/SignInWithApple.m:16:41: note: 'convertedScopes' declared here [exec] NSMutableArray<ASAuthorizationScope> *convertedScopes = [NSMutableArray array]; [exec] ^ [exec] /Users/username/Documents/company/mobile/app_type-wrapper/app_type/jera.goweb.mobile.app_type/JERA_GOWEB_app_type_APP/app_type/appbuilds/compiled/DEVELOPMENT/APPNAME.50.50.50/ios/com.company.appname.custom.ch20/platforms/ios/com.company.appname.custom.ch20/Plugins/cordova-plugin-sign-in-with-apple/SignInWithApple.m:31:14: error: use of undeclared identifier 'ASAuthorizationScopeFullName' [exec] return ASAuthorizationScopeFullName; [exec] ^ [exec] /Users/username/Documents/company/mobile/app_type-wrapper/app_type/jera.goweb.mobile.app_type/JERA_GOWEB_app_type_APP/app_type/appbuilds/compiled/DEVELOPMENT/APPNAME.50.50.50/ios/com.company.appname.custom.ch20/platforms/ios/com.company.appname.custom.ch20/Plugins/cordova-plugin-sign-in-with-apple/SignInWithApple.m:33:14: error: use of undeclared identifier 'ASAuthorizationScopeEmail' [exec] return ASAuthorizationScopeEmail; [exec] ^ [exec] /Users/username/Documents/company/mobile/app_type-wrapper/app_type/jera.goweb.mobile.app_type/JERA_GOWEB_app_type_APP/app_type/appbuilds/compiled/DEVELOPMENT/APPNAME.50.50.50/ios/com.company.appname.custom.ch20/platforms/ios/com.company.appname.custom.ch20/Plugins/cordova-plugin-sign-in-with-apple/SignInWithApple.m:46:5: error: use of undeclared identifier 'ASAuthorizationAppleIDProvider' [exec] ASAuthorizationAppleIDProvider *provider = [exec] ^ [exec] /Users/username/Documents/company/mobile/app_type-wrapper/app_type/jera.goweb.mobile.app_type/JERA_GOWEB_app_type_APP/app_type/appbuilds/compiled/DEVELOPMENT/APPNAME.50.50.50/ios/com.company.appname.custom.ch20/platforms/ios/com.company.appname.custom.ch20/Plugins/cordova-plugin-sign-in-with-apple/SignInWithApple.m:46:37: error: use of undeclared identifier 'provider' [exec] ASAuthorizationAppleIDProvider *provider = [exec] ^ [exec] /Users/username/Documents/company/mobile/app_type-wrapper/app_type/jera.goweb.mobile.app_type/JERA_GOWEB_app_type_APP/app_type/appbuilds/compiled/DEVELOPMENT/APPNAME.50.50.50/ios/com.company.appname.custom.ch20/platforms/ios/com.company.appname.custom.ch20/Plugins/cordova-plugin-sign-in-with-apple/SignInWithApple.m:47:11: error: use of undeclared identifier 'ASAuthorizationAppleIDProvider' [exec] [[ASAuthorizationAppleIDProvider alloc] init]; [exec] ^ [exec] /Users/username/Documents/company/mobile/app_type-wrapper/app_type/jera.goweb.mobile.app_type/JERA_GOWEB_app_type_APP/app_type/appbuilds/compiled/DEVELOPMENT/APPNAME.50.50.50/ios/com.company.appname.custom.ch20/platforms/ios/com.company.appname.custom.ch20/Plugins/cordova-plugin-sign-in-with-apple/SignInWithApple.m:48:5: error: use of undeclared identifier 'ASAuthorizationAppleIDRequest' [exec] ASAuthorizationAppleIDRequest *request = [provider createRequest]; [exec] ^ [exec] /Users/username/Documents/company/mobile/app_type-wrapper/app_type/jera.goweb.mobile.app_type/JERA_GOWEB_app_type_APP/app_type/appbuilds/compiled/DEVELOPMENT/APPNAME.50.50.50/ios/com.company.appname.custom.ch20/platforms/ios/com.company.appname.custom.ch20/Plugins/cordova-plugin-sign-in-with-apple/SignInWithApple.m:48:36: error: use of undeclared identifier 'request' [exec] ASAuthorizationAppleIDRequest *request = [provider createRequest]; [exec] ^ [exec] /Users/username/Documents/company/mobile/app_type-wrapper/app_type/jera.goweb.mobile.app_type/JERA_GOWEB_app_type_APP/app_type/appbuilds/compiled/DEVELOPMENT/APPNAME.50.50.50/ios/com.company.appname.custom.ch20/platforms/ios/com.company.appname.custom.ch20/Plugins/cordova-plugin-sign-in-with-apple/SignInWithApple.m:48:47: error: use of undeclared identifier 'provider' [exec] ASAuthorizationAppleIDRequest *request = [provider createRequest]; [exec] ^ [exec] /Users/username/Documents/company/mobile/app_type-wrapper/app_type/jera.goweb.mobile.app_type/JERA_GOWEB_app_type_APP/app_type/appbuilds/compiled/DEVELOPMENT/APPNAME.50.50.50/ios/com.company.appname.custom.ch20/platforms/ios/com.company.appname.custom.ch20/Plugins/cordova-plugin-sign-in-with-apple/SignInWithApple.m:51:9: error: use of undeclared identifier 'request' [exec] request.requestedScopes = [self convertScopes:options[@"requestedScopes"]]; [exec] ^ [exec] /Users/username/Documents/company/mobile/app_type-wrapper/app_type/jera.goweb.mobile.app_type/JERA_GOWEB_app_type_APP/app_type/appbuilds/compiled/DEVELOPMENT/APPNAME.50.50.50/ios/com.company.appname.custom.ch20/platforms/ios/com.company.appname.custom.ch20/Plugins/cordova-plugin-sign-in-with-apple/SignInWithApple.m:54:5: error: use of undeclared identifier 'ASAuthorizationController' [exec] ASAuthorizationController *controller = [[ASAuthorizationController alloc] [exec] ^ [exec] fatal error: too many errors emitted, stopping now [-ferror-limit=] [exec] 20 errors generated. [exec]

Many thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants