IOS build error at export step in codenameone

99 views
Skip to first unread message

kantha...@gmail.com

unread,
Sep 20, 2017, 7:01:05 AM9/20/17
to CodenameOne Discussions
If you are experiencing an issue please mention the full platform your issue applies to:
IDE: IntelliJ IDEA
Desktop OS : Windows 
Simulator
Device 

I'm trying to build a sample and tried to generate build for android and ios also.
for android, its build successfully but coming to ios its failing at export step.
i am not understanding whats the error.
i included CloudKit support also.
so could you please check and tell me where i'm doing wrong/solution to generate build..

Thanks

Steve Hannah

unread,
Sep 20, 2017, 8:45:25 AM9/20/17
to codenameone...@googlegroups.com
This is likely a problem with iCloud entitlements.  We have limited support right now for iCloud.  If you just require iCloud documents, then adding the build hint ios.icloud.CloudDocuments=true should get things moving.  
Steve


--
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-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/e331f0e2-fb4b-4fde-8e1c-b8b6cec7d24f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Steve Hannah
Software Developer
Codename One

kantha...@gmail.com

unread,
Sep 20, 2017, 9:54:29 AM9/20/17
to CodenameOne Discussions
Thanks for reply steve.. 
Actually as per this i enabled CloudKit support, without enabling also ios build not getting generated, i followed multiple ways to generate but failed.
present my main task is want to generate ios build.
so could you tell me where i'm doing wrong/best way to generate ios build?

Steve Hannah

unread,
Sep 20, 2017, 11:04:51 AM9/20/17
to codenameone...@googlegroups.com
Can you post relevant parts of your codenameone_settings.properties file?

The problem is certainly with your entitlements.  Likely related to the cloudkit stuff.  Based on the error message:

requiredEntitlements='{
    "application-identifier" = "com.sample";
    "aps-environment" = production;
    "get-task-allow" = 1;
    "keychain-access-groups" =     (
        "com.sample"
    );

It doesn't look like it is adding the icloud entitlements - which makes me think that you haven't added the ios.icloud.CloudDocuments build hint.

On Wed, Sep 20, 2017 at 6:54 AM, <kantha...@gmail.com> wrote:
Thanks for reply steve.. 
Actually as per this i enabled CloudKit support, without enabling also ios build not getting generated, i followed multiple ways to generate but failed.
present my main task is want to generate ios build.
so could you tell me where i'm doing wrong/best way to generate ios build?

   
 

On Wednesday, September 20, 2017 at 6:15:25 PM UTC+5:30, Steve Hannah wrote:
This is likely a problem with iCloud entitlements.  We have limited support right now for iCloud.  If you just require iCloud documents, then adding the build hint ios.icloud.CloudDocuments=true should get things moving.  
Steve

On Wed, Sep 20, 2017 at 4:01 AM, <kantha...@gmail.com> wrote:
If you are experiencing an issue please mention the full platform your issue applies to:
IDE: IntelliJ IDEA
Desktop OS : Windows 
Simulator
Device 

I'm trying to build a sample and tried to generate build for android and ios also.
for android, its build successfully but coming to ios its failing at export step.
i am not understanding whats the error.
i included CloudKit support also.
so could you please check and tell me where i'm doing wrong/solution to generate build..

Thanks

--
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-discussions+unsubscr...@googlegroups.com.



--
Steve Hannah
Software Developer
Codename One

--
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-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.

For more options, visit https://groups.google.com/d/optout.

kantha...@gmail.com

unread,
Sep 20, 2017, 2:47:11 PM9/20/17
to CodenameOne Discussions
Steve,

Here i attached codenameone properties file, 
and i added ios.icloud.CloudDocuments build hint also.
for that "codename1.arg.ios.icloud.CloudDocuments=true" attribute added in properties file.   



To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/e331f0e2-fb4b-4fde-8e1c-b8b6cec7d24f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Steve Hannah
Software Developer
Codename One

--
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-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/6301bb5c-f822-4762-8be1-1f98f973b132%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
CodenameoneProperties file.txt

Steve Hannah

unread,
Sep 20, 2017, 2:52:46 PM9/20/17
to codenameone...@googlegroups.com
Actually, I just re-read the error log and noticed this:


To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com.



--
Steve Hannah
Software Developer
Codename One

--
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-discussions+unsubscr...@googlegroups.com.



--
Steve Hannah
Software Developer
Codename One

--
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-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.

For more options, visit https://groups.google.com/d/optout.

Steve Hannah

unread,
Sep 20, 2017, 2:55:14 PM9/20/17
to codenameone...@googlegroups.com
Actually, I just re-read the error log and noticed this:
2017-09-20 08:03:24 +0000 [MT] Rejecting: c8c8c414-5922-4465-b3ca-42cddcd62e49 (Offending Key: application-identifier)
The problematic key is the application-identifier.  What is the App ID in the provisioning profile you're using?  Does it contain a wildcard, or does it exactly match the app.  I seem to recall something about iCloud not allowing wildcards in the provisioning profile - but it has been a long time since I set up CloudKit in an app, so I'm a little hazy.
Steve




--
Steve Hannah
Software Developer
Codename One

kantha...@gmail.com

unread,
Sep 20, 2017, 3:07:23 PM9/20/17
to CodenameOne Discussions
Steve, 

My App Id is "GWNAJKG9XY.com.sample"
so because of iCloud build is not generating or what? so if problem is iCloud i can remove it.
as per the stackoverflow link i added that's it..
as of now not required for me..

Thanks   
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsub...@googlegroups.com.



--
Steve Hannah
Software Developer
Codename One

--
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-discussions+unsub...@googlegroups.com.



--
Steve Hannah
Software Developer
Codename One

--
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-discussions+unsub...@googlegroups.com.



--
Steve Hannah
Software Developer
Codename One

Steve Hannah

unread,
Sep 20, 2017, 3:09:36 PM9/20/17
to codenameone...@googlegroups.com
So does that app ID match your provisioning profile exactly?  How did you generate the provisioning profile?

To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com.



--
Steve Hannah
Software Developer
Codename One

--
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-discussions+unsubscr...@googlegroups.com.



--
Steve Hannah
Software Developer
Codename One

--
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-discussions+unsubscr...@googlegroups.com.



--
Steve Hannah
Software Developer
Codename One



--
Steve Hannah
Software Developer
Codename One

--
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-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.

For more options, visit https://groups.google.com/d/optout.

kantha...@gmail.com

unread,
Sep 20, 2017, 3:21:43 PM9/20/17
to CodenameOne Discussions
i'm generating provisioning profile through Apple developer account
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.



--
Steve Hannah
Software Developer
Codename One

--
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-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.



--
Steve Hannah
Software Developer
Codename One

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.

Steve Hannah

unread,
Sep 20, 2017, 3:42:06 PM9/20/17
to codenameone...@googlegroups.com
Does the appID  in the provisioning profile contain any wildcards?

To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com.



--
Steve Hannah
Software Developer
Codename One

--
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-discussions+unsubscr...@googlegroups.com.



--
Steve Hannah
Software Developer
Codename One

--
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-discussions+unsubscr...@googlegroups.com.



--
Steve Hannah
Software Developer
Codename One



--
Steve Hannah
Software Developer
Codename One

--
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-discussions+unsubscr...@googlegroups.com.



--
Steve Hannah
Software Developer
Codename One

--
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-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.

For more options, visit https://groups.google.com/d/optout.

kantha...@gmail.com

unread,
Sep 20, 2017, 3:52:33 PM9/20/17
to CodenameOne Discussions
No, i'm not using any wildcard..
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.



--
Steve Hannah
Software Developer
Codename One

--
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-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.



--
Steve Hannah
Software Developer
Codename One

--
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-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.



--
Steve Hannah
Software Developer
Codename One



--
Steve Hannah
Software Developer
Codename One

--
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-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.



--
Steve Hannah
Software Developer
Codename One

--
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-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/78c82a80-59b1-4012-b4e3-57a7f3639fe8%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Steve Hannah

unread,
Sep 20, 2017, 4:21:06 PM9/20/17
to codenameone...@googlegroups.com
The cause of the failure is clear from the error message.  It is an issue with the application identifier.  Focus your attention there.
One thing that jumps out is that your codenameone_settings file that you posted doesn't include any IOS release settings.  Only debug.  But the error readout shows that you're using a distribution certificate.  That seems off.  



To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com.



--
Steve Hannah
Software Developer
Codename One

--
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-discussions+unsubscr...@googlegroups.com.



--
Steve Hannah
Software Developer
Codename One

--
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-discussions+unsubscr...@googlegroups.com.



--
Steve Hannah
Software Developer
Codename One



--
Steve Hannah
Software Developer
Codename One

--
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-discussions+unsubscr...@googlegroups.com.



--
Steve Hannah
Software Developer
Codename One

--
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-discussions+unsubscr...@googlegroups.com.



--
Steve Hannah
Software Developer
Codename One

--
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-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.

For more options, visit https://groups.google.com/d/optout.

kantha...@gmail.com

unread,
Sep 20, 2017, 4:28:55 PM9/20/17
to CodenameOne Discussions
yes we used distribution certificate only because there are only two options which are Distribution either Production i.e. we used distribution certificate. 
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.



--
Steve Hannah
Software Developer
Codename One

--
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-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.



--
Steve Hannah
Software Developer
Codename One

--
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-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.



--
Steve Hannah
Software Developer
Codename One



--
Steve Hannah
Software Developer
Codename One

--
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-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.



--
Steve Hannah
Software Developer
Codename One

--
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-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.



--
Steve Hannah
Software Developer
Codename One

--
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-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/914ea803-5307-47c0-929f-3aa11641b037%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Shai Almog

unread,
Sep 21, 2017, 12:41:45 AM9/21/17
to CodenameOne Discussions
The two options are development and distribution and you should generate the right signing/provisioning to match. Why didn't you use the wizard?

kantha...@gmail.com

unread,
Sep 21, 2017, 2:41:30 AM9/21/17
to CodenameOne Discussions
Shai,

I have tried with both certificates but build is not generating. 
and we used wizard also then we are getting below error..

=== BUILD TARGET MyApplication OF PROJECT MyApplication WITH CONFIGURATION Release ===

Check dependencies
Code Sign error: No codesigning identities found: No codesigning identities (i.e. certificate and private key pairs) that match the provisioning profile specified in your build settings (“MyApplication IOS_DEVELOPMENT Profile†) were found.
warning: skipping file '/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build6748483649662051503xxx/dist/MyApplication-src/MyApplication-Info.plist' (unexpected file type 'text.plist.xml' in Frameworks & Libraries build phase)
warning: skipping file '/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build6748483649662051503xxx/dist/MyApplication-src/MyApplication-Prefix.pch' (unexpected file type 'sourcecode.c.objc.preprocessed' in Frameworks & Libraries build phase)
Warning: The Link Binary With Libraries build phase contains this target's Info.plist file 'MyApplication-src/MyApplication-Info.plist'.

** ARCHIVE FAILED **


The following build commands failed:
	Check dependencies
(1 failure)
Failed xcodebuild step

Shai Almog

unread,
Sep 21, 2017, 11:49:58 PM9/21/17
to CodenameOne Discussions
Did you use the wizard in Codename One Settings and save after?

Did you revoke the existing certificates as part of the wizard?
When you go into the iOS signing section after running the wizard is everything filled in properly?

kantha...@gmail.com

unread,
Sep 25, 2017, 7:15:19 AM9/25/17
to CodenameOne Discussions
Shai sorry for delay,

Actually i tried to revoke existed certificates but when signing through iTunes acc i'm getting only provision certificate from the account so after that i added the p12 certificate manually.
after adding i'm saving every time..

Shai Almog

unread,
Sep 26, 2017, 12:19:38 AM9/26/17
to CodenameOne Discussions
Did you use the wizard in Codename One Settings?
When that wizard is done did you press save. The P12 file must be filled if it's not that might be a problem where the P12 doesn't match the Provisioning.
Do you get a different error each time, notice some errors might look similar but aren't.

kantha...@gmail.com

unread,
Sep 26, 2017, 2:53:58 PM9/26/17
to CodenameOne Discussions
Hi Shai and Steve,

I finally found the issue and resolved it and i'm able to generate the ios build.
There was an issue with certificate password and spacing with path(p12 and Provisional certificates which are giving in the properties file).
Reply all
Reply to author
Forward
0 new messages