IOS sdk issue

93 views
Skip to first unread message

Dave Dyer

unread,
Apr 26, 2021, 1:54:55 PM4/26/21
to CodenameOne Discussions

Yesterday's build of an IOS app is rejected today at the app store,
complaining that it was built with sdk 13.2 but sdk 14 is required.

Shai Almog

unread,
Apr 26, 2021, 10:12:41 PM4/26/21
to CodenameOne Discussions
We updated our build servers to include xcode 12.4 and pushed out that update. As a result we experienced some issues related to that annual mess.
Right now we're still defaulting to 11.3 but you should be able to explicitly send an xcode 12.4 build using: ios.xcode_version=12.4
Notice that we'll flip the default over the weekend so it will no longer be needed starting next week.

Dave Dyer

unread,
Apr 27, 2021, 3:24:53 AM4/27/21
to CodenameOne Discussions
It looks like there may be some unresolved problems with the 12.4 option:

esPath/Launch.build/Release-iphoneos/Launch.build/DerivedSources/arm64 -I/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build3100488520530737749xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/Launch/IntermediateBuildFilesPath/Launch.build/Release-iphoneos/Launch.build/DerivedSources -F/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build3100488520530737749xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/Launch/BuildProductsPath/Release-iphoneos -fno-objc-arc -include /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build3100488520530737749xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/Launch/PrecompiledHeaders/SharedPrecompiledHeaders/8225370240782353001/Launch-Prefix.pch -MMD -MT dependencies -MF /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build3100488520530737749xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/Launch/IntermediateBuildFilesPath/Launch.build/Release-iphoneos/Launch.build/Objects-normal/arm64/OpenUDID.d --serialize-diagnostics /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build3100488520530737749xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/Launch/IntermediateBuildFilesPath/Launch.build/Release-iphoneos/Launch.build/Objects-normal/arm64/OpenUDID.dia -c /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build3100488520530737749xxx/dist/Launch-src/OpenUDID.m -o /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build3100488520530737749xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/Launch/IntermediateBuildFilesPath/Launch.build/Release-iphoneos/Launch.build/Objects-normal/arm64/OpenUDID.o
/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build3100488520530737749xxx/dist/Launch-src/OpenUDID.m:147:22: warning: values of type 'NSUInteger' should not be used as format arguments; add an explicit cast to 'unsigned long' instead [-Wformat]
                     (NSUInteger)(arc4random() % NSUIntegerMax)];  
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                     (unsigned long)
/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build3100488520530737749xxx/dist/Launch-src/OpenUDID.m:138:23: warning: implicit conversion loses integer precision: 'unsigned long' to 'CC_LONG' (aka 'unsigned int') [-Wshorten-64-to-32]
        CC_MD5( cStr, strlen(cStr), result );
        ~~~~~~        ^~~~~~~~~~~~
2 warnings generated.

CompileC /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build3100488520530737749xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/Launch/IntermediateBuildFilesPath/Launch.build/Release-iphoneos/Launch.build/Objects-normal/arm64/OpenUDID.o /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build3100488520530737749xxx/dist/Launch-src/OpenUDID.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Launch' from project 'Launch')
    cd /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build3100488520530737749xxx/dist
    export LANG\=en_US.US-ASCII
    /Applications/Xcode12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target arm64-apple-ios8.0 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -std\=c99 -gmodules -Wno-trigraphs -fpascal-strings -O3 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror\=return-type -Wno-implicit-atomic-properties -Werror\=deprecated-objc-isa-usage -Wno-objc-interface-ivars -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 -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-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 -DOBJC_OLD_DISPATCH_PROTOTYPES\=1 -isysroot /Applications/Xcode12.4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -fvisibility\=hidden -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -iquote /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build3100488520530737749xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/Launch/IntermediateBuildFilesPath/Launch.build/Release-iphoneos/Launch.build/Launch-generated-files.hmap -I/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build3100488520530737749xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/Launch/IntermediateBuildFilesPath/Launch.build/Release-iphoneos/Launch.build/Launch-own-target-headers.hmap -I/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build3100488520530737749xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/Launch/IntermediateBuildFilesPath/Launch.build/Release-iphoneos/Launch.build/Launch-all-target-headers.hmap -iquote /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build3100488520530737749xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/Launch/IntermediateBuildFilesPath/Launch.build/Release-iphoneos/Launch.build/Launch-project-headers.hmap -I/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build3100488520530737749xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/Launch/BuildProductsPath/Release-iphoneos/include -I/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build3100488520530737749xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/Launch/IntermediateBuildFilesPath/Launch.build/Release-iphoneos/Launch.build/DerivedSources-normal/arm64 -I/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build3100488520530737749xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/Launch/IntermediateBuildFilesPath/Launch.build/Release-iphoneos/Launch.build/DerivedSources/arm64 -I/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build3100488520530737749xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/Launch/IntermediateBuildFilesPath/Launch.build/Release-iphoneos/Launch.build/DerivedSources -F/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build3100488520530737749xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/Launch/BuildProductsPath/Release-iphoneos -fno-objc-arc -include /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build3100488520530737749xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/Launch/PrecompiledHeaders/SharedPrecompiledHeaders/8225370240782353001/Launch-Prefix.pch -MMD -MT dependencies -MF /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build3100488520530737749xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/Launch/IntermediateBuildFilesPath/Launch.build/Release-iphoneos/Launch.build/Objects-normal/arm64/OpenUDID.d --serialize-diagnostics /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build3100488520530737749xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/Launch/IntermediateBuildFilesPath/Launch.build/Release-iphoneos/Launch.build/Objects-normal/arm64/OpenUDID.dia -c /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build3100488520530737749xxx/dist/Launch-src/OpenUDID.m -o /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build3100488520530737749xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/Launch/IntermediateBuildFilesPath/Launch.build/Release-iphoneos/Launch.build/Objects-normal/arm64/OpenUDID.o
/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build3100488520530737749xxx/dist/Launch-src/OpenUDID.m:147:22: warning: values of type 'NSUInteger' should not be used as format arguments; add an explicit cast to 'unsigned long' instead [-Wformat]
                     (NSUInteger)(arc4random() % NSUIntegerMax)];  
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                     (unsigned long)
/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build3100488520530737749xxx/dist/Launch-src/OpenUDID.m:138:23: warning: implicit conversion loses integer precision: 'unsigned long' to 'CC_LONG' (aka 'unsigned int') [-Wshorten-64-to-32]
        CC_MD5( cStr, strlen(cStr), result );
        ~~~~~~        ^~~~~~~~~~~~
2 warnings generated.
Timeout reached.  Destroying process

Dave Dyer

unread,
Apr 27, 2021, 3:26:01 AM4/27/21
to CodenameOne Discussions
..if i's only that the process is slower (my build didn't change since yesterday) please change your time limit.

Shai Almog

unread,
Apr 27, 2021, 9:44:50 PM4/27/21
to CodenameOne Discussions
We'll add a few minutes this weekend but it's already 30 minutes which is insanely high.

Dave Dyer

unread,
Apr 28, 2021, 2:40:38 PM4/28/21
to CodenameOne Discussions
I have noticed that build times have been creeping up, but yesterday my debug builds took 10 minutes, today they take 20.
We're being victimized by apple bloat.

Dave Dyer

unread,
Apr 28, 2021, 3:35:20 PM4/28/21
to CodenameOne Discussions
the ios xcode build hint doesn't work.  app store is still complaining.
xcode.jpg

Steve Hannah

unread,
Apr 28, 2021, 3:43:24 PM4/28/21
to codenameone...@googlegroups.com
Is it the exact same error message from the App Store?

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/1033e1fb-6e20-461a-b5f3-1485af0475e3n%40googlegroups.com.


--
Steve Hannah
Software Developer
Codename One
Message has been deleted

Dave Dyer

unread,
Apr 28, 2021, 4:03:44 PM4/28/21
to CodenameOne Discussions
oops, my error - I accidentally uploaded the previous build again.  New builds with the hint are accepted.

Dave Dyer

unread,
May 7, 2021, 6:37:16 PM5/7/21
to CodenameOne Discussions
The promised "few minutes" seems not to have materialized - my builds are timing out after 30 minutes.
.. also or alternative the self-build capability with mavin isn't supported yet with Eclipse.
.. also, when these timeout builds occur, there's no way to get the xcode sources and build it myself.
.. and finally, why do production builds take twice as long as debug builds?

A year ago, when my build was only a little bit smaller, a production build took 10 minutes.

Steve Hannah

unread,
May 7, 2021, 8:05:12 PM5/7/21
to codenameone...@googlegroups.com
Maven “local Xcode builds” work fine for me from eclipse.  In the worst case you can build from command line if your eclipse won’t cooperate.

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discu...@googlegroups.com.

Dave Dyer

unread,
May 7, 2021, 9:08:09 PM5/7/21
to CodenameOne Discussions
The skeleton builder doesn't produce an error-free mavin project.

Steve Hannah

unread,
May 7, 2021, 9:10:03 PM5/7/21
to codenameone...@googlegroups.com
They build fine for me.  I see those errors in Eclipse only (not any other ide) and they don’t seem to affect ability to build and run the project.

Dave Dyer

unread,
May 7, 2021, 9:36:14 PM5/7/21
to CodenameOne Discussions
The "life cycle" problems keep builds from working for me

[ERROR] Failed to execute goal com.codenameone:codenameone-maven-plugin:7.0.26:build (build-ios) on project testapp-ios: Failed to build ios app: Please install Cocoapods in order to generate Xcode projects.  E.g. 'sudo gem install cocoapods'.  See https://cocoapods.org/ -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.codenameone:codenameone-maven-plugin:7.0.26:build (build-ios) on project testapp-ios: Failed to build ios app
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)

Steve Hannah

unread,
May 7, 2021, 9:40:53 PM5/7/21
to codenameone...@googlegroups.com
Did you install cocoapods as the error advises?

Dave Dyer

unread,
May 7, 2021, 9:42:20 PM5/7/21
to CodenameOne Discussions
Isn't cocopods something I'd find on a mac?  this choice is being offered on a pc.

Dave Dyer

unread,
May 7, 2021, 9:46:01 PM5/7/21
to CodenameOne Discussions
Similar results from an android build attempt on a pc
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Users/Ddyer/.p2/pool/plugins/org.eclipse.m2e.maven.runtime.slf4j.simple_1.16.0.20200610-1735/jars/slf4j-simple-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [file:/C:/Users/Ddyer/eclipse/java-2021-03/eclipse/configuration/org.eclipse.osgi/5/0/.cp/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory]
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Users/Ddyer/.p2/pool/plugins/org.eclipse.m2e.maven.runtime.slf4j.simple_1.16.0.20200610-1735/jars/slf4j-simple-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [file:/C:/Users/Ddyer/eclipse/java-2021-03/eclipse/configuration/org.eclipse.osgi/5/0/.cp/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory]
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.084 s
[INFO] Finished at: 2021-05-07T18:44:28-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1]

Steve Hannah

unread,
May 7, 2021, 9:52:55 PM5/7/21
to codenameone...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages