iOS - Publish your first Appliction


#1

About
It’s been a while, but now it’s ready :slight_smile: I made a new, complete (hopefully) guide showing you how to publish your games made with any Framework to Apple’s iTunes Store.

@imanolm1 & @andoni.martin I hope it’s fine if I link it here :stuck_out_tongue:
Thank you!

The Guide

Tutorial: iOS - How to publish an app to iTunes

Feedback & Suggestions
Any feedback & any suggestions are welcome! I’ll give my very best to keep this guide up to date, so let me know if something has changed or if I missed something in this guide.

P.S. If you want to support me, please check the “Support” tab in the table of content.


[Construct2] How to build with CocoonIO
How to Publish on iPhones
#2

#3

Tutorial link showing 404 error…page not found


#4

Hi @brightgeeks01

Thank you for letting me know. It’s fixed now.

Regards
Andy


#5

@andy_reitberger

Awesome man…i have seen your tutorials on shatter-box…life saver…

Is it possible to use appodeal for iOs? i mean through appkey we can show appodeal ads on our games if we are making games on construct 2

Thanks


#6

You’re welcome :slight_smile: Thank you!

I havent’ worked with appodeal yet, basically it should work if there is a Construct 2 and a Cordova Plugin for it :wink:
Once I have decided to use Appodeal as well, I’ll make a guide for it.

Regards
Andy


#7

Yeah its a nice tool…

Although it worked for me on android…with this plugin
https://github.com/Tamplier/cordova-plugin.git

but whenever i add any cocoon plugin like cocoonInApp, Cocooncanvasplus in my construct 2 project…the compiler just show a error…it does not compile…i dont know may be i have to add some other plugin also??

If you know something about this…tht would be nice to share

Thanks


#8

What error do you get then?

Regards
Andy


#9

HI,

I am getting this error

ANDROID_HOME=opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
:preBuild UP-TO-DATE
:preArmv7DebugBuild UP-TO-DATE
:checkArmv7DebugManifest
:preX86DebugBuild UP-TO-DATE
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:compileDebugNdk UP-TO-DATE
:CordovaLib:compileLint
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:mergeDebugProguardFiles
:CordovaLib:packageDebugRenderscript UP-TO-DATE
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugRenderscript
:CordovaLib:generateDebugResValues
:CordovaLib:generateDebugResources
:CordovaLib:packageDebugResources
:CordovaLib:compileDebugAidl
:CordovaLib:generateDebugBuildConfig
:CordovaLib:generateDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugAssets
:CordovaLib:processDebugManifest
:CordovaLib:processDebugResources
:CordovaLib:generateDebugSources
:CordovaLib:compileDebugJavaWithJavacNote: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

:CordovaLib:processDebugJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForDebug
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug
:CordovaLib:mergeDebugJniLibFolders
:CordovaLib:transformNative_libsWithMergeJniLibsForDebug
:CordovaLib:transformNative_libsWithSyncJniLibsForDebug
:CordovaLib:bundleDebug
:prepareAndroidCordovaLibUnspecifiedDebugLibrary
:preArmv7ReleaseBuild UP-TO-DATE
:preX86ReleaseBuild UP-TO-DATE
:CordovaLib:preReleaseBuild UP-TO-DATE
:CordovaLib:compileReleaseNdk UP-TO-DATE
:CordovaLib:copyReleaseLint UP-TO-DATE
:CordovaLib:mergeReleaseProguardFiles
:CordovaLib:packageReleaseRenderscript UP-TO-DATE
:CordovaLib:checkReleaseManifest
:CordovaLib:prepareReleaseDependencies
:CordovaLib:compileReleaseRenderscript
:CordovaLib:generateReleaseResValues
:CordovaLib:generateReleaseResources
:CordovaLib:packageReleaseResources
:CordovaLib:compileReleaseAidl
:CordovaLib:generateReleaseBuildConfig
:CordovaLib:generateReleaseAssets UP-TO-DATE
:CordovaLib:mergeReleaseAssets
:CordovaLib:processReleaseManifest
:CordovaLib:processReleaseResources
:CordovaLib:generateReleaseSources
:CordovaLib:compileReleaseJavaWithJavacNote: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

:CordovaLib:processReleaseJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForRelease
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease
:CordovaLib:mergeReleaseJniLibFolders
:CordovaLib:transformNative_libsWithMergeJniLibsForRelease
:CordovaLib:transformNative_libsWithSyncJniLibsForRelease
:CordovaLib:bundleRelease
:prepareCanvasplusReleaseLibrary
:preArmv7DebugAndroidTestBuild UP-TO-DATE
:preX86DebugAndroidTestBuild UP-TO-DATE
:prepareComAndroidSupportMultidex101Library
:prepareComAndroidSupportSupportV42220Library
:prepareComGoogleAndroidGmsPlayServicesAds830Library
:prepareComGoogleAndroidGmsPlayServicesBasement830Library
:prepareArmv7DebugDependencies
:compileArmv7DebugAidl
:compileArmv7DebugRenderscript
:generateArmv7DebugBuildConfig
:generateArmv7DebugAssets UP-TO-DATE
:mergeArmv7DebugAssets
:generateArmv7DebugResValues
:generateArmv7DebugResources
:mergeArmv7DebugResources
:processArmv7DebugManifest
:processArmv7DebugResources
:generateArmv7DebugSources
:compileArmv7DebugJavaWithJavacNote: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: cordova/platforms/android/src/com/ludei/CocoonApp.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

:compileArmv7DebugNdk UP-TO-DATE
:compileArmv7DebugSources
:transformClassesWithJarMergingForArmv7Debug
:collectArmv7DebugMultiDexComponents
:transformClassesWithMultidexlistForArmv7Debug
ProGuard, version 5.2.1
Reading program jar [cordova/platforms/android/build/intermediates/transforms/jarMerging/armv7/debug/jars/1/1f/combined.jar]
:transformClassesWithMultidexlistForArmv7Debug FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:transformClassesWithMultidexlistForArmv7Debug’.

Java heap space

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 1 mins 40.239 secs
ERROR building one of the platforms: Error code 1 for command: cordova/platforms/android/gradlew with args: cdvBuildDebug,-b,cordova/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
You may not have the required environment or OS to build this project
Error: Error code 1 for command: cordova/platforms/android/gradlew with args: cdvBuildDebug,-b,cordova/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true


#10

Just set Multidex enabled to yes, then it should work.


#11

Hi andy,

thanks for the reply but multidex enabled is already yes…

the error is still there

Thanks


#12

Hi andy,

i have now set multidex enable to "no "and now it got worked!

thanks for the help


#13

Great news. Only enable Multidex if a thirdparty plugin needs a different version of an included plugin (like Appodeal does, it needs the Google Play Games SDK, but so does the Social API plugin).

Thank you!

Regards
Andy


#14

HI andy,

It was mistake actually it worked without google play services…i have tried like all plugins installing uninstalling seprate installing no result everytime compilation error…


https://github.com/appodeal/PhoneGap-GooglePlayServices.git
https://github.com/Tamplier/cordova-plugin.git

So i think appodeal on cocoon works seperate not with google play services still if you get anything regarding this i mean if you would be able to get appodeal plugin work with google play services please post about it…

Thanks


#15

Hi,
I tried to access using Chrome and Firefox, but both shows me a message telling to disable adBlocker.
I do not use adBlocker.

thanks


#16

Thank you, this was an issue by our AdBlock Detecter.
It’s now fixed.


#17

hi andy,

When compiling my iOS project, I’m not getting the Xcode project when downloading the source code. I have my provisional profile and p12 file, I also created both a distribution and development certificates but I have 42 apps in the app store so most of the instructions I had done already, I’ve just never dealt with a construct 2 project. Each time I download the source code I get a capx file and the folder with all of the apps images, media files, and the index html, as well as a few js files and a JSON file. Any suggestions? Thanks for your help!


#18

Hi,
where did you download the source code?
It’s clear that you download the source code that you will download what you’ve uploaded (a construct 2 exported cordova project).
You must click “Compile” and then click on the Platform Icon.

In your case there should be an icon for iOS as well.

Please note, if you upload your keys to cocoon, you will receive an .ipa file, otherwise a .xcodearchive

Regards
Andy


Xcode project in Zip Folder missing when compiling for iOS