【问题标题】:CodenameOne iOS debug build errorCodenameOne iOS 调试构建错误
【发布时间】:2017-01-24 13:09:37
【问题描述】:

我的 iOS 调试构建失败。以下是 error.log 文件中的一些错误:

...
java.lang.NullPointerException
at com.codename1.admob.AdMobManager.loadAd(AdMobManager.java:49)
at com.dd.midp.slicklottoca.SlickLottoCA.init(SlickLottoCA.java:177)
at com.dd.midp.slicklottoca.SlickLottoCAStub.run(SlickLottoCAStub.java:28)
at com.codename1.ui.Display.processSerialCalls(Display.java:1152)
at com.codename1.ui.Display.mainEDTLoop(Display.java:969)
at com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:120)
at com.codename1.impl.CodenameOneThread.run(CodenameOneThread.java:176)
...
Error during processing: undefined method `path' for nil:NilClass
Backtrace:
/Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/scheme/buildable_reference.rb:89:in `construct_buildable_name'
/Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/scheme/buildable_reference.rb:59:in `set_reference_target'
/Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/scheme/buildable_reference.rb:16:in `block in initialize'
/Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/scheme/xml_element_wrapper.rb:53:in `create_xml_element_with_fallback'
/Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/scheme/buildable_reference.rb:14:in `initialize'
/Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/scheme/build_action.rb:96:in `new'
/Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/scheme/build_action.rb:96:in `block in initialize'
/Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/scheme/xml_element_wrapper.rb:53:in `create_xml_element_with_fallback'
/Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/scheme/build_action.rb:77:in `initialize'
/Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/scheme.rb:186:in `new'
/Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/scheme.rb:186:in `add_build_target'
/Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/project.rb:756:in `block in recreate_user_schemes'
/Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/project.rb:754:in `each'
/Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/project.rb:754:in `recreate_user_schemes'
/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/hooks/fix_xcode_schemes.rb:5:in `<main>'
An error occurred recreating schemes, but the build still might work...
...
** ARCHIVE FAILED **

The following build commands failed:
CompileC build/Build/Intermediates/ArchiveIntermediates/SlickLottoCA/IntermediateBuildFilesPath/SlickLottoCA.build/Release-iphoneos/SlickLottoCA.build/Objects-normal/armv7/com_codename1_admob_AdMobNativeImpl.o SlickLottoCA-src/com_codename1_admob_AdMobNativeImpl.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Failed xcodebuild step

这些错误看起来与我正在使用的 AdmobFullScreen cn1lib 有关,但它曾经可以工作,我没有更改与此相关的任何内容。

【问题讨论】:

  • 看起来你从完整的错误日志中删除了很多行,所以我不知道出了什么问题。
  • 这里是错误日志的链接:codename-one.appspot.com/…

标签: codenameone


【解决方案1】:

这是错误:

The following build commands failed:
    CompileC build/Build/Intermediates/ArchiveIntermediates/SlickLottoCA/IntermediateBuildFilesPath/SlickLottoCA.build/Release-iphoneos/SlickLottoCA.build/Objects-normal/armv7/com_codename1_admob_AdMobNativeImpl.o SlickLottoCA-src/com_codename1_admob_AdMobNativeImpl.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Failed xcodebuild step

要理解它,请关注这个com_codename1_admob_AdMobNativeImpl.m,因为那是实际失败的文件。要查找错误,请在日志中搜索com_codename1_admob_AdMobNativeImpl.m:

CompileC build/Build/Intermediates/ArchiveIntermediates/SlickLottoCA/IntermediateBuildFilesPath/SlickLottoCA.build/Release-iphoneos/SlickLottoCA.build/Objects-normal/armv7/com_codename1_admob_AdMobNativeImpl.o SlickLottoCA-src/com_codename1_admob_AdMobNativeImpl.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist
    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 -Wno-trigraphs -fpascal-strings -O3 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wno-int-conversion -Wbool-conversion -Wno-enum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DCOCOAPODS=1 -DNS_BLOCK_ASSERTIONS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -miphoneos-version-min=6.0 -g -fvisibility=hidden -Wno-sign-conversion -iquote /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/build/Build/Intermediates/ArchiveIntermediates/SlickLottoCA/IntermediateBuildFilesPath/SlickLottoCA.build/Release-iphoneos/SlickLottoCA.build/SlickLottoCA-generated-files.hmap -I/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/build/Build/Intermediates/ArchiveIntermediates/SlickLottoCA/IntermediateBuildFilesPath/SlickLottoCA.build/Release-iphoneos/SlickLottoCA.build/SlickLottoCA-own-target-headers.hmap -I/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/build/Build/Intermediates/ArchiveIntermediates/SlickLottoCA/IntermediateBuildFilesPath/SlickLottoCA.build/Release-iphoneos/SlickLottoCA.build/SlickLottoCA-all-target-headers.hmap -iquote /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/build/Build/Intermediates/ArchiveIntermediates/SlickLottoCA/IntermediateBuildFilesPath/SlickLottoCA.build/Release-iphoneos/SlickLottoCA.build/SlickLottoCA-project-headers.hmap -I/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/build/Build/Intermediates/ArchiveIntermediates/SlickLottoCA/BuildProductsPath/Release-iphoneos/include -I/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Firebase/Core/Sources -I/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Headers/Public -I/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Headers/Public/Firebase -I/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Headers/Public/FirebaseAnalytics -I/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Headers/Public/FirebaseCore -I/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Headers/Public/FirebaseInstanceID -I/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Headers/Public/Google-Mobile-Ads-SDK -I/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Headers/Public/GoogleInterchangeUtilities -I/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Headers/Public/GoogleSymbolUtilities -I/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Headers/Public/GoogleToolboxForMac -I/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/build/Build/Intermediates/ArchiveIntermediates/SlickLottoCA/IntermediateBuildFilesPath/SlickLottoCA.build/Release-iphoneos/SlickLottoCA.build/DerivedSources/armv7 -I/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/build/Build/Intermediates/ArchiveIntermediates/SlickLottoCA/IntermediateBuildFilesPath/SlickLottoCA.build/Release-iphoneos/SlickLottoCA.build/DerivedSources -F/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/build/Build/Intermediates/ArchiveIntermediates/SlickLottoCA/BuildProductsPath/Release-iphoneos -F/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/FirebaseAnalytics/Frameworks/frameworks -F/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/FirebaseCore/Frameworks -F/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/FirebaseInstanceID/Frameworks/frameworks -F/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks -F/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/GoogleInterchangeUtilities/Frameworks/frameworks -F/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/GoogleSymbolUtilities/Frameworks/frameworks -isystem /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Headers/Public -isystem /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Headers/Public/Firebase -isystem /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Headers/Public/FirebaseAnalytics -isystem /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Headers/Public/FirebaseCore -isystem /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Headers/Public/FirebaseInstanceID -isystem /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Headers/Public/Google-Mobile-Ads-SDK -isystem /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Headers/Public/GoogleInterchangeUtilities -isystem /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Headers/Public/GoogleSymbolUtilities -isystem /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Headers/Public/GoogleToolboxForMac -include /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/build/Build/Intermediates/ArchiveIntermediates/SlickLottoCA/PrecompiledHeaders/SlickLottoCA-Prefix-bpywombausyhonckyloluumwxvap/SlickLottoCA-Prefix.pch -MMD -MT dependencies -MF /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/build/Build/Intermediates/ArchiveIntermediates/SlickLottoCA/IntermediateBuildFilesPath/SlickLottoCA.build/Release-iphoneos/SlickLottoCA.build/Objects-normal/armv7/com_codename1_admob_AdMobNativeImpl.d --serialize-diagnostics /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/build/Build/Intermediates/ArchiveIntermediates/SlickLottoCA/IntermediateBuildFilesPath/SlickLottoCA.build/Release-iphoneos/SlickLottoCA.build/Objects-normal/armv7/com_codename1_admob_AdMobNativeImpl.dia -c /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/com_codename1_admob_AdMobNativeImpl.m -o /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/build/Build/Intermediates/ArchiveIntermediates/SlickLottoCA/IntermediateBuildFilesPath/SlickLottoCA.build/Release-iphoneos/SlickLottoCA.build/Objects-normal/armv7/com_codename1_admob_AdMobNativeImpl.o
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/com_codename1_admob_AdMobNativeImpl.m:2:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/CodenameOne_GLViewController.h:114:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks/GoogleMobileAds.framework/Headers/GoogleMobileAds.h:23:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks/GoogleMobileAds.framework/Headers/GADBannerView.h:13:
/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks/GoogleMobileAds.framework/Headers/GADInAppPurchaseDelegate.h:21:11: warning: duplicate protocol definition of 'GADDefaultInAppPurchaseDelegate' is ignored
@protocol GADDefaultInAppPurchaseDelegate<NSObject>
          ^
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/com_codename1_admob_AdMobNativeImpl.m:1:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/com_codename1_admob_AdMobNativeImpl.h:3:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/GADInterstitial.h:10:
/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/GADInAppPurchaseDelegate.h:19:11: note: previous definition is here
@protocol GADDefaultInAppPurchaseDelegate<NSObject>
          ^
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/com_codename1_admob_AdMobNativeImpl.m:2:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/CodenameOne_GLViewController.h:114:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks/GoogleMobileAds.framework/Headers/GoogleMobileAds.h:23:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks/GoogleMobileAds.framework/Headers/GADBannerView.h:13:
/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks/GoogleMobileAds.framework/Headers/GADInAppPurchaseDelegate.h:40:11: warning: duplicate protocol definition of 'GADInAppPurchaseDelegate' is ignored
@protocol GADInAppPurchaseDelegate<NSObject>
          ^
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/com_codename1_admob_AdMobNativeImpl.m:1:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/com_codename1_admob_AdMobNativeImpl.h:3:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/GADInterstitial.h:10:
/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/GADInAppPurchaseDelegate.h:38:11: note: previous definition is here
@protocol GADInAppPurchaseDelegate<NSObject>
          ^
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/com_codename1_admob_AdMobNativeImpl.m:2:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/CodenameOne_GLViewController.h:114:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks/GoogleMobileAds.framework/Headers/GoogleMobileAds.h:23:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks/GoogleMobileAds.framework/Headers/GADBannerView.h:14:
/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks/GoogleMobileAds.framework/Headers/GADRequest.h:20:28: warning: redefinition of typedef 'GADGender' is a C11 feature [-Wtypedef-redefinition]
typedef NS_ENUM(NSInteger, GADGender) {
                           ^
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/com_codename1_admob_AdMobNativeImpl.m:1:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/com_codename1_admob_AdMobNativeImpl.h:3:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/GADInterstitial.h:13:
/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/GADRequest.h:19:28: note: previous definition is here
typedef NS_ENUM(NSInteger, GADGender) {
                           ^
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/com_codename1_admob_AdMobNativeImpl.m:2:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/CodenameOne_GLViewController.h:114:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks/GoogleMobileAds.framework/Headers/GoogleMobileAds.h:23:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks/GoogleMobileAds.framework/Headers/GADBannerView.h:14:
/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks/GoogleMobileAds.framework/Headers/GADRequest.h:20:28: error: redefinition of 'GADGender'
typedef NS_ENUM(NSInteger, GADGender) {
                           ^
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/com_codename1_admob_AdMobNativeImpl.m:1:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/com_codename1_admob_AdMobNativeImpl.h:3:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/GADInterstitial.h:13:
/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/GADRequest.h:19:28: note: previous definition is here
typedef NS_ENUM(NSInteger, GADGender) {
                           ^
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/com_codename1_admob_AdMobNativeImpl.m:2:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/CodenameOne_GLViewController.h:114:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks/GoogleMobileAds.framework/Headers/GoogleMobileAds.h:23:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks/GoogleMobileAds.framework/Headers/GADBannerView.h:14:
/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks/GoogleMobileAds.framework/Headers/GADRequest.h:21:3: error: redefinition of enumerator 'kGADGenderUnknown'
  kGADGenderUnknown,  ///< Unknown gender.
  ^
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/com_codename1_admob_AdMobNativeImpl.m:1:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/com_codename1_admob_AdMobNativeImpl.h:3:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/GADInterstitial.h:13:
/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/GADRequest.h:20:3: note: previous definition is here
  kGADGenderUnknown,  ///< Unknown gender.
  ^
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/com_codename1_admob_AdMobNativeImpl.m:2:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/CodenameOne_GLViewController.h:114:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks/GoogleMobileAds.framework/Headers/GoogleMobileAds.h:23:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks/GoogleMobileAds.framework/Headers/GADBannerView.h:14:
/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks/GoogleMobileAds.framework/Headers/GADRequest.h:22:3: error: redefinition of enumerator 'kGADGenderMale'
  kGADGenderMale,     ///< Male gender.
  ^
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/com_codename1_admob_AdMobNativeImpl.m:1:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/com_codename1_admob_AdMobNativeImpl.h:3:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/GADInterstitial.h:13:
/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/GADRequest.h:21:3: note: previous definition is here
  kGADGenderMale,     ///< Male gender.
  ^
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/com_codename1_admob_AdMobNativeImpl.m:2:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/CodenameOne_GLViewController.h:114:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks/GoogleMobileAds.framework/Headers/GoogleMobileAds.h:23:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks/GoogleMobileAds.framework/Headers/GADBannerView.h:14:
/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks/GoogleMobileAds.framework/Headers/GADRequest.h:23:3: error: redefinition of enumerator 'kGADGenderFemale'
  kGADGenderFemale    ///< Female gender.
  ^
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/com_codename1_admob_AdMobNativeImpl.m:1:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/com_codename1_admob_AdMobNativeImpl.h:3:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/GADInterstitial.h:13:
/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/GADRequest.h:22:3: note: previous definition is here
  kGADGenderFemale    ///< Female gender.
  ^
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/com_codename1_admob_AdMobNativeImpl.m:2:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/CodenameOne_GLViewController.h:114:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks/GoogleMobileAds.framework/Headers/GoogleMobileAds.h:23:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks/GoogleMobileAds.framework/Headers/GADBannerView.h:14:
/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks/GoogleMobileAds.framework/Headers/GADRequest.h:27:1: error: duplicate interface definition for class 'GADRequest'
@interface GADRequest : NSObject<NSCopying>
^
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/com_codename1_admob_AdMobNativeImpl.m:1:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/com_codename1_admob_AdMobNativeImpl.h:3:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/GADInterstitial.h:13:
/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/GADRequest.h:26:12: note: previous definition is here
@interface GADRequest : NSObject<NSCopying>
           ^
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/com_codename1_admob_AdMobNativeImpl.m:2:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/CodenameOne_GLViewController.h:114:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks/GoogleMobileAds.framework/Headers/GoogleMobileAds.h:23:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks/GoogleMobileAds.framework/Headers/GADBannerView.h:14:
/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks/GoogleMobileAds.framework/Headers/GADRequest.h:57:51: error: property has a previous declaration
@property(nonatomic, copy, GAD_NULLABLE) NSArray *testDevices;
                                                  ^
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/com_codename1_admob_AdMobNativeImpl.m:1:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/com_codename1_admob_AdMobNativeImpl.h:3:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/GADInterstitial.h:13:
/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/GADRequest.h:59:37: note: property declared here
@property(nonatomic, copy) NSArray *testDevices;
                                    ^
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/com_codename1_admob_AdMobNativeImpl.m:2:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/CodenameOne_GLViewController.h:114:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks/GoogleMobileAds.framework/Headers/GoogleMobileAds.h:23:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks/GoogleMobileAds.framework/Headers/GADBannerView.h:14:
/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks/GoogleMobileAds.framework/Headers/GADRequest.h:62:40: error: property has a previous declaration
@property(nonatomic, assign) GADGender gender;
                                       ^
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/com_codename1_admob_AdMobNativeImpl.m:1:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/com_codename1_admob_AdMobNativeImpl.h:3:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/GADInterstitial.h:13:
/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/GADRequest.h:64:40: note: property declared here
@property(nonatomic, assign) GADGender gender;
                                       ^
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/com_codename1_admob_AdMobNativeImpl.m:2:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/CodenameOne_GLViewController.h:114:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks/GoogleMobileAds.framework/Headers/GoogleMobileAds.h:23:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks/GoogleMobileAds.framework/Headers/GADBannerView.h:14:
/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks/GoogleMobileAds.framework/Headers/GADRequest.h:65:50: error: property has a previous declaration
@property(nonatomic, copy, GAD_NULLABLE) NSDate *birthday;
                                                 ^
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/com_codename1_admob_AdMobNativeImpl.m:1:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/com_codename1_admob_AdMobNativeImpl.h:3:
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/GADInterstitial.h:13:
/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/GADRequest.h:67:38: note: property declared here
@property(nonatomic, strong) NSDate *birthday;
                                     ^
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/dist/SlickLottoCA-src/com_codename1_admob_AdMobNativeImpl.m:1:
fatal error: too many errors emitted, stopping now [-ferror-limit=]
4 warnings and 20 errors generated.

剪了一点,因为太长了……

问题是您对触发此故障的 admob 做了什么?

您是否添加/更改了任何构建提示?

【讨论】:

  • 我没有更改任何构建提示。这开始发生在 3.6 版本之后以及将我的 Netbeans 更新到最新插件之后。只是为了确保错误与我的代码更改无关,我为使用 AdmobFullScreen cn1lib 的较旧的未更改项目发送了构建,但它失败了
  • 你过去设置了什么?以前可以正常工作的构建提示/cn1lib 可能与最近的更改发生冲突。
  • 我设置了这些构建提示:ios.add_libs=AdSupport.framework;SystemConfiguration.framework;CoreTelephony.framework ios.objC=true
  • 您可能有与此冲突的旧版本库:github.com/codenameone/CodenameOne/issues/1790 我建议删除所有 ios.* 构建提示,更新所有 cn1libs 并刷新库
  • 我按照你的建议做了,但还是不行。查看错误日志:link
猜你喜欢
  • 2018-11-27
  • 2018-08-12
  • 1970-01-01
  • 2018-02-14
  • 1970-01-01
  • 2023-03-31
  • 1970-01-01
  • 2021-05-01
  • 2016-08-12
相关资源
最近更新 更多