我在我的离子框架应用程序中安装了cordova paypal插件,该应用程序在android中工作正常但是当我尝试运行IOS时它显示错误构建失败,
**建筑失败**
以下构建命令失败: CompileC build / HairDiction.build / Debug-iphonesimulator / HairDiction.build / Objects-normal / i386 / PayPalMobileCordovaPlugin.o HairDiction / Plugins / com.paypal.cordova.mobilesdk / PayPalMobileCordovaPlugin.m normal i386 objective-c com.apple.compilers。 llvm.clang.1_0.compiler (1失败)
错误:命令的错误代码65:带有args的xcodebuild:-xcconfig,/ Applications / MAMP / htdocs / phonegap / hairdiction / platforms / ios / cordova / build-debug.xcconfig,-project,HairDiction.xcodeproj,ARCHS = I386,-target,HairDiction, - 构型,调试-sdk,iphonesimulator,构建,VALID_ARCHS = I386,CONFIGURATION_BUILD_DIR = /应用/ MAMP / htdocs中/ PhoneGap的/ hairdiction /平台/ IOS /建造/仿真器,SHARED_PRECOMPS_DIR = /应用/ MAMP / htdocs中/ PhoneGap的/ hairdiction /平台/ IOS /建造/ sharedpch
和
/Applications/MAMP/htdocs/phonegap/hairdiction/platforms/ios/HairDiction/Plugins/com.paypal.cordova.mobilesdk/PayPalOAuthScopes.h:14:34:警告:缺少类型说明符,默认为' INT' [-Wimplicit-INT] extern NSString * _Nonnull const kPayPalOAuth2ScopeFuturePayments; ~~~~~ ^
/Applications/MAMP/htdocs/phonegap/hairdiction/platforms/ios/HairDiction/Plugins/com.paypal.cordova.mobilesdk/PayPalOAuthScopes.h:16:27:错误:预期&#39 ;;'在顶级声明者之后 extern NSString * _Nonnull const kPayPalOAuth2ScopeProfile; ^ ;
/Applications/MAMP/htdocs/phonegap/hairdiction/platforms/ios/HairDiction/Plugins/com.paypal.cordova.mobilesdk/PayPalOAuthScopes.h:16:34:警告:缺少类型说明符,默认为' INT' [-Wimplicit-INT] extern NSString * _Nonnull const kPayPalOAuth2ScopeProfile; ~~~~~ ^
/Applications/MAMP/htdocs/phonegap/hairdiction/platforms/ios/HairDiction/Plugins/com.paypal.cordova.mobilesdk/PayPalOAuthScopes.h:18:27:错误:预期&#39 ;;'在顶级声明者之后 extern NSString * _Nonnull const kPayPalOAuth2ScopeOpenId; ^ ;
/Applications/MAMP/htdocs/phonegap/hairdiction/platforms/ios/HairDiction/Plugins/com.paypal.cordova.mobilesdk/PayPalOAuthScopes.h:18:34:警告:缺少类型说明符,默认为' INT' [-Wimplicit-INT] extern NSString * _Nonnull const kPayPalOAuth2ScopeOpenId; ~~~~~ ^
/Applications/MAMP/htdocs/phonegap/hairdiction/platforms/ios/HairDiction/Plugins/com.paypal.cordova.mobilesdk/PayPalOAuthScopes.h:20:27:错误:预期&#39 ;;'在顶级声明者之后 extern NSString * _Nonnull const kPayPalOAuth2ScopePayPalAttributes; ^ ;
/Applications/MAMP/htdocs/phonegap/hairdiction/platforms/ios/HairDiction/Plugins/com.paypal.cordova.mobilesdk/PayPalOAuthScopes.h:20:34:警告:缺少类型说明符,默认为' INT' [-Wimplicit-INT] extern NSString * _Nonnull const kPayPalOAuth2ScopePayPalAttributes; ~~~~~ ^
/Applications/MAMP/htdocs/phonegap/hairdiction/platforms/ios/HairDiction/Plugins/com.paypal.cordova.mobilesdk/PayPalOAuthScopes.h:22:27:错误:预期&#39 ;;'在顶级声明者之后 extern NSString * _Nonnull const kPayPalOAuth2ScopeEmail; ^ ;
/Applications/MAMP/htdocs/phonegap/hairdiction/platforms/ios/HairDiction/Plugins/com.paypal.cordova.mobilesdk/PayPalOAuthScopes.h:22:34:警告:缺少类型说明符,默认为' INT' [-Wimplicit-INT] extern NSString * _Nonnull const kPayPalOAuth2ScopeEmail; ~~~~~ ^
/Applications/MAMP/htdocs/phonegap/hairdiction/platforms/ios/HairDiction/Plugins/com.paypal.cordova.mobilesdk/PayPalOAuthScopes.h:24:27:错误:预期&#39 ;;'在顶级声明者之后 extern NSString * _Nonnull const kPayPalOAuth2ScopeAddress; ^;
/Applications/MAMP/htdocs/phonegap/hairdiction/platforms/ios/HairDiction/Plugins/com.paypal.cordova.mobilesdk/PayPalOAuthScopes.h:24:34:警告:缺少类型说明符,默认为' INT' [-Wimplicit-INT] extern NSString * _Nonnull const kPayPalOAuth2ScopeAddress; ~~~~~ ^
/Applications/MAMP/htdocs/phonegap/hairdiction/platforms/ios/HairDiction/Plugins/com.paypal.cordova.mobilesdk/PayPalOAuthScopes.h:26:27:错误:预期&#39 ;;'在顶级声明者之后 extern NSString * _Nonnull const kPayPalOAuth2ScopePhone; ^;
/Applications/MAMP/htdocs/phonegap/hairdiction/platforms/ios/HairDiction/Plugins/com.paypal.cordova.mobilesdk/PayPalOAuthScopes.h:26:34:警告:缺少类型说明符,默认为' INT' [-Wimplicit-INT] extern NSString * _Nonnull const kPayPalOAuth2ScopePhone; ~~~~~ ^
在/Applications/MAMP/htdocs/phonegap/hairdiction/platforms/ios/HairDiction/Plugins/com.paypal.cordova.mobilesdk/PayPalMobileCordovaPlugin.m:6中包含的文件中:
在/Applications/MAMP/htdocs/phonegap/hairdiction/platforms/ios/HairDiction/Plugins/com.paypal.cordova.mobilesdk/PayPalMobileCordovaPlugin.h:8中包含的文件中: 在/Applications/MAMP/htdocs/phonegap/hairdiction/platforms/ios/HairDiction/Plugins/com.paypal.cordova.mobilesdk/PayPalMobile.h:16中包含的文件中:
/Applications/MAMP/htdocs/phonegap/hairdiction/platforms/ios/HairDiction/Plugins/com.paypal.cordova.mobilesdk/PayPalPaymentViewController.h:81:38:警告:指针缺少可空性类型说明符(__nonnull或__nullable)[ - 可靠性 - 完整性] @property(nonatomic,weak,readonly)id paymentDelegate; ^
在/Applications/MAMP/htdocs/phonegap/hairdiction/platforms/ios/HairDiction/Plugins/com.paypal.cordova.mobilesdk/PayPalMobileCordovaPlugin.m:6中包含的文件中:
在/Applications/MAMP/htdocs/phonegap/hairdiction/platforms/ios/HairDiction/Plugins/com.paypal.cordova.mobilesdk/PayPalMobileCordovaPlugin.h:8中包含的文件:
在/Applications/MAMP/htdocs/phonegap/hairdiction/platforms/ios/HairDiction/Plugins/com.paypal.cordova.mobilesdk/PayPalMobile.h:17中包含的文件中:
/Applications/MAMP/htdocs/phonegap/hairdiction/platforms/ios/HairDiction/Plugins/com.paypal.cordova.mobilesdk/PayPalProfileSharingViewController.h:68:39:警告:指针缺少可空性类型说明符(__nonnull或__nullable)[ - 可靠性 - 完整性] @property(nonatomic,weak,readonly)id profileSharingDelegate; ^
在/Applications/MAMP/htdocs/phonegap/hairdiction/platforms/ios/HairDiction/Plugins/com.paypal.cordova.mobilesdk/PayPalMobileCordovaPlugin.m:6中包含的文件中:
在/Applications/MAMP/htdocs/phonegap/hairdiction/platforms/ios/HairDiction/Plugins/com.paypal.cordova.mobilesdk/PayPalMobileCordovaPlugin.h:8中包含的文件:
/Applications/MAMP/htdocs/phonegap/hairdiction/platforms/ios/HairDiction/Plugins/com.paypal.cordova.mobilesdk/PayPalMobile.h:21:27:错误:预期';'在顶级声明者之后 extern NSString * _Nonnull const PayPalEnvironmentProduction; ^;
/Applications/MAMP/htdocs/phonegap/hairdiction/platforms/ios/HairDiction/Plugins/com.paypal.cordova.mobilesdk/PayPalMobile.h:21:34:警告:缺少类型说明符,默认为' INT' [-Wimplicit-INT] extern NSString * _Nonnull const PayPalEnvironmentProduction; ~~~~~ ^
/Applications/MAMP/htdocs/phonegap/hairdiction/platforms/ios/HairDiction/Plugins/com.paypal.cordova.mobilesdk/PayPalMobile.h:23:27:错误:预期&#39 ;;'在顶级声明者之后 extern NSString * _Nonnull const PayPalEnvironmentSandbox; ^;
/Applications/MAMP/htdocs/phonegap/hairdiction/platforms/ios/HairDiction/Plugins/com.paypal.cordova.mobilesdk/PayPalMobile.h:23:34:警告:缺少类型说明符,默认为' INT' [-Wimplicit-INT] extern NSString * _Nonnull const PayPalEnvironmentSandbox; ~~~~~ ^
/Applications/MAMP/htdocs/phonegap/hairdiction/platforms/ios/HairDiction/Plugins/com.paypal.cordova.mobilesdk/PayPalMobile.h:25:27:错误:预期';'在顶级声明者之后 extern NSString * _Nonnull const PayPalEnvironmentNoNetwork; ^;
/Applications/MAMP/htdocs/phonegap/hairdiction/platforms/ios/HairDiction/Plugins/com.paypal.cordova.mobilesdk/PayPalMobile.h:25:34:警告:缺少类型说明符,默认为' INT' [-Wimplicit-INT] extern NSString * _Nonnull const PayPalEnvironmentNoNetwork; ~~~~~ ^
/Applications/MAMP/htdocs/phonegap/hairdiction/platforms/ios/HairDiction/Plugins/com.paypal.cordova.mobilesdk/PayPalMobile.h:21:17:警告:指针缺少可空性类型说明符(__ nonnull或__nullable)[ - 可靠性 - 完整性] extern NSString * _Nonnull const PayPalEnvironmentProduction; ^
/Applications/MAMP/htdocs/phonegap/hairdiction/platforms/ios/HairDiction/Plugins/com.paypal.cordova.mobilesdk/PayPalMobileCordovaPlugin.m:34:33:错误:类型' int&#的集合元素39;不是Objective-C对象 NSDictionary * clientIds = @ {PayPalEnvironmentProduction:clientIdsReceived [@" PayPalEnvironmentProduction"],
/Applications/MAMP/htdocs/phonegap/hairdiction/platforms/ios/HairDiction/Plugins/com.paypal.cordova.mobilesdk/PayPalMobileCordovaPlugin.m:208:24:错误:' int&#39的隐式转换;到#NSString *' ARC不允许这样做 environmentToUse = PayPalEnvironmentNoNetwork; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/MAMP/htdocs/phonegap/hairdiction/platforms/ios/HairDiction/Plugins/com.paypal.cordova.mobilesdk/PayPalMobileCordovaPlugin.m:208:22:警告:不兼容的整数到指针转换分配给&#39 ; NSString * __ strong'来自' const int' [-Wint转换] environmentToUse = PayPalEnvironmentNoNetwork; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/MAMP/htdocs/phonegap/hairdiction/platforms/ios/HairDiction/Plugins/com.paypal.cordova.mobilesdk/PayPalMobileCordovaPlugin.m:210:24:错误:' int&#39的隐式转换;到#NSString *' ARC不允许这样做 environmentToUse = PayPalEnvironmentProduction; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/MAMP/htdocs/phonegap/hairdiction/platforms/ios/HairDiction/Plugins/com.paypal.cordova.mobilesdk/PayPalMobileCordovaPlugin.m:210:22:警告:不兼容的整数到指针转换分配给' NSString * __strong'来自' const int' [-Wint转换] environmentToUse = PayPalEnvironmentProduction; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/MAMP/htdocs/phonegap/hairdiction/platforms/ios/HairDiction/Plugins/com.paypal.cordova.mobilesdk/PayPalMobileCordovaPlugin.m:212:24:错误:' int&#39的隐式转换;到#NSString *' ARC不允许这样做 environmentToUse = PayPalEnvironmentSandbox; ^ ~~~~~~~~~~~~~~~~~~~~~~~
/Applications/MAMP/htdocs/phonegap/hairdiction/platforms/ios/HairDiction/Plugins/com.paypal.cordova.mobilesdk/PayPalMobileCordovaPlugin.m:212:22:警告:不兼容的整数到指针转换分配给&#39 ; NSString * __ strong'来自' const int' [-Wint转换] environmentToUse = PayPalEnvironmentSandbox; ^ ~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/MAMP/htdocs/phonegap/hairdiction/platforms/ios/HairDiction/Plugins/com.paypal.cordova.mobilesdk/PayPalMobileCordovaPlugin.m:249:16:错误:类型' int&#的集合元素39;不是Objective-C对象 @" openid":kPayPalOAuth2ScopeOpenId, ^ 产生了17个警告和15个错误。