# Failed to bundle iOS application

**URL:** <https://forum.defold.com/t/failed-to-bundle-ios-application/71054>\
**Category:** Questions\
**Created:** [June 5, 2022, 1:31pm UTC](https://forum.defold.com/t/failed-to-bundle-ios-application/71054 "2022-06-05T13:31:32Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dong\_Wang](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/dong_wang/32/28542_2.png) [@Dong\_Wang](https://forum.defold.com/u/Dong_Wang)\
**Post date:** [June 5, 2022, 1:31pm UTC](https://forum.defold.com/t/failed-to-bundle-ios-application/71054/1 "2022-06-05T13:31:32Z")

</div>

I just tried to bundle iOS application. It failed.  
My defold verstion is 1.3.0.  
Output in terminal:

```lua
Downloading 1 archive(s)
 0: Downloading https://github.com/defold/extension-admob/archive/master.zip
 0: Status 304: Already cached
Build Remote Engine...
2022-06-05 21:25:43.942 Defold[5108:30150988] NSEventModifierFlagFunction specified to -setKeyEquivalentModifierMask: for item <NSMenuItem: 0x600003549ff0 Toggle Assets Pane, ke='Command-F6'>, but is only supported for system-provided menu items; will not be used
ERROR: unspecified:-1: 'com.dynamo.bob.CompileExceptionError: 'arm64-ios' could not be built. Sdk version: '0e77ba11ac957ee01878bbde2e6ac0c9fae6dc01'
Log: '<failed reading log>''

```

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [June 5, 2022, 1:36pm UTC](https://forum.defold.com/t/failed-to-bundle-ios-application/71054/2 "2022-06-05T13:36:39Z")

</div>

Are you using a custom .plist for your project?

---

<div class="post-metadata">

**Author:** ![Dong\_Wang](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/dong_wang/32/28542_2.png) [@Dong\_Wang](https://forum.defold.com/u/Dong_Wang)\
**Post date:** [June 5, 2022, 1:39pm UTC](https://forum.defold.com/t/failed-to-bundle-ios-application/71054/3 "2022-06-05T13:39:05Z")

</div>

no, I am using the builtin one.

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [June 5, 2022, 5:38pm UTC](https://forum.defold.com/t/failed-to-bundle-ios-application/71054/4 "2022-06-05T17:38:01Z")

</div>

And what if you try a completely empty project?

---

<div class="post-metadata">

**Author:** ![Dong\_Wang](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/dong_wang/32/28542_2.png) [@Dong\_Wang](https://forum.defold.com/u/Dong_Wang)\
**Post date:** [June 5, 2022, 10:51pm UTC](https://forum.defold.com/t/failed-to-bundle-ios-application/71054/5 "2022-06-05T22:51:20Z")

</div>

I got could not establish an SSL connection error. I am using VPN, should I turn it off?

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [June 6, 2022, 6:51am UTC](https://forum.defold.com/t/failed-to-bundle-ios-application/71054/6 "2022-06-06T06:51:47Z")

</div>

> [@Dong\_Wang](#):
>
> I got could not establish an SSL connection error

We’re having some SSL handshake issues and extended the most recent beta which include a fix for this:

> [@Defold 1.3.3 BETA](https://forum.defold.com/t/defold-1-3-3-beta/70927/2):
>
> Today is the 1.3.3 version release day, but we decided to postpone it for a week. We found an issue when TLSv1.3 SSL handshake fails with JDK 11.0.1 we used. That’s why we updated the newer JDK 11.0.15 in the editor, which also needs an update of the JOGL library our editor uses. Version with these changes is building now and will be ready in an hour or so. The fixes this version includes (in comparison with the previous avaliable beta): new JDK 11.0.15 and JOGL library in the editor; fix [“…](https://github.com/defold/defold/issues/6624)

An updated version of the editor with this fix included will be released tomorrow (it’s a bank holiday in Sweden today).

---

<div class="post-metadata">

**Author:** ![Dong\_Wang](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/dong_wang/32/28542_2.png) [@Dong\_Wang](https://forum.defold.com/u/Dong_Wang)\
**Post date:** [June 6, 2022, 7:04am UTC](https://forum.defold.com/t/failed-to-bundle-ios-application/71054/7 "2022-06-06T07:04:04Z")

</div>

Thanks for your helps. I just wondering why internet connection is required for bundle iOS application, what we gonna upload to remote engine to bundle iOS application? Is the source code included? I have tried Godot engine before, it supports export as iOS project locally, which is very helpful to edit configuration for the iOS project and submit to appstore in Xcode. Is it possible to make it happen in Defold?

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [June 6, 2022, 7:17am UTC](https://forum.defold.com/t/failed-to-bundle-ios-application/71054/8 "2022-06-06T07:17:45Z")

</div>

> [@Dong\_Wang](#):
>
> Thanks for your helps. I just wondering why internet connection is required for bundle iOS application, what we gonna upload to remote engine to bundle iOS application

Oh, no you do not need an internet connection to bundle, unless you use extensions.

I thought you got that SSL error when creating a new empty project. The project templates are hosted on GitHub and downloaded by the editor when used. Here’s the empty project template for instance: [GitHub - defold/template-empty: The empty project template that is available from the Defold editor launch screen · GitHub](https://github.com/defold/template-empty)

When did you get the SSL error?

---

<div class="post-metadata">

**Author:** ![Dong\_Wang](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/dong_wang/32/28542_2.png) [@Dong\_Wang](https://forum.defold.com/u/Dong_Wang)\
**Post date:** [June 6, 2022, 7:22am UTC](https://forum.defold.com/t/failed-to-bundle-ios-application/71054/9 "2022-06-06T07:22:05Z")

</div>

> [@britzl](#):
>
> When did you get the SSL error?

After I click create empty project button, defold start to download the template.

Is it possible to export defold project as iOS project locally which can be opened by Xcode? I saw Godot make it, can defold team make it too?

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [June 6, 2022, 7:22am UTC](https://forum.defold.com/t/failed-to-bundle-ios-application/71054/10 "2022-06-06T07:22:13Z")

</div>

In case you are using native extensions, you might need to build the executable, then ofc you will need internet access to reach the build server.

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [June 6, 2022, 7:23am UTC](https://forum.defold.com/t/failed-to-bundle-ios-application/71054/11 "2022-06-06T07:23:14Z")

</div>

> [@Dong\_Wang](#):
>
> Is it possible to export defold project as iOS project locally which can be opened by Xcode? I saw Godot make it, can defold team make it too?

No, a Defold project is quite different from an XCode (or VIsual Studio project).

---

<div class="post-metadata">

**Author:** ![Dong\_Wang](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/dong_wang/32/28542_2.png) [@Dong\_Wang](https://forum.defold.com/u/Dong_Wang)\
**Post date:** [June 6, 2022, 9:09am UTC](https://forum.defold.com/t/failed-to-bundle-ios-application/71054/12 "2022-06-06T09:09:33Z")

</div>

Now the build log shows up, but still can’t bundle iOS application.

```lua
ld: warning: directory not found for option '-L/usr/local/extender-production/platformsdk/iPhoneOS15.2.sdk/usr/include/c++/v1/usr/lib'
ld: warning: object file (/var/folders/pf/p5g2vb2j0yx1x6vlmxdppc700000gn/T/job17933096945945262348/upload/extension-admob/lib/ios/GoogleAppMeasurement.framework/GoogleAppMeasurement(APMAdExposureReporter.o)) was built for newer iOS version (9.0) than being linked (8.0)
/extension-admob/lib/ios/GoogleMobileAds.framework/Headers/GADMediaView.h
	Line 27: In file included from upload/extension-admob/src/admob_ios.mm:5:
In file included from /var/folders/pf/p5g2vb2j0yx1x6vlmxdppc700000gn/T/job17933096945945262348/upload/extension-admob/lib/ios/GoogleMobileAds.framework/Headers/GoogleMobileAds.h:40:
In file included from /var/folders/pf/p5g2vb2j0yx1x6vlmxdppc700000gn/T/job17933096945945262348/upload/extension-admob/lib/ios/GoogleMobileAds.framework/Headers/GADCustomNativeAd.h:11:
no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed [-Wobjc-property-no-attribute]
@property(nonatomic, nullable) GADMediaContent *mediaContent;
^
/extension-admob/src/admob.cpp
	Line 5: 'DLIB_LOG_DOMAIN' macro redefined [-Wmacro-redefined]
#define DLIB_LOG_DOMAIN LIB_NAME
        ^
	Line 5: previous definition is here
#define DLIB_LOG_DOMAIN "ADMOBEXT"
        ^
	Line 36: format string is not a string literal (potentially insecure) [-Wformat-security]
        luaL_error(L, msg);
                      ^~~
	Line 36: treat the string as an argument to avoid this
        luaL_error(L, msg);
                      ^
                      "%s",
	Line 57: format string is not a string literal (potentially insecure) [-Wformat-security]
        luaL_error(L, msg);
                      ^~~
	Line 57: treat the string as an argument to avoid this
        luaL_error(L, msg);
                      ^
                      "%s",
	Line 78: format string is not a string literal (potentially insecure) [-Wformat-security]
        luaL_error(L, msg);
                      ^~~
	Line 78: treat the string as an argument to avoid this
        luaL_error(L, msg);
                      ^
                      "%s",
	Line 272: enumeration values 'EVENT_ID_DEACTIVATEAPP', 'EVENT_ID_ICONIFYAPP', and 'EVENT_ID_DEICONIFYAPP' not handled in switch [-Wswitch]
    switch(event->m_Event)
           ^
	Line 272: add missing switch cases
    switch(event->m_Event)
           ^
/extension-admob/src/admob_ios.mm
	Line 119: format string is not a string literal (potentially insecure) [-Wformat-security]
                    NSLog([NSString stringWithFormat:@"Error domain: \"%@\". %@", [error domain], [error localizedDescription]]);
                          ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	Line 119: treat the string as an argument to avoid this
                    NSLog([NSString stringWithFormat:@"Error domain: \"%@\". %@", [error domain], [error localizedDescription]]);
                          ^
                          @"%@",
	Line 179: format string is not a string literal (potentially insecure) [-Wformat-security]
                    NSLog([NSString stringWithFormat:@"Error domain: \"%@\". %@", [error domain], [error localizedDescription]]);
                          ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	Line 179: treat the string as an argument to avoid this
                    NSLog([NSString stringWithFormat:@"Error domain: \"%@\". %@", [error domain], [error localizedDescription]]);
                          ^
                          @"%@",
	Line 239: 5 enumeration values not handled in switch: 'SIZE_ADAPTIVE_BANNER', 'SIZE_FLUID', 'SIZE_SEARH'... [-Wswitch]
        switch (bannerSizeConst) {
                ^
	Line 239: add missing switch cases
        switch (bannerSizeConst) {
                ^
	Line 241: 'kGADAdSizeBanner' is deprecated: Use GADAdSizeBanner [-Wdeprecated-declarations]
            bannerSize = kGADAdSizeBanner;
                         ^
	Line 244: 'kGADAdSizeFullBanner' is deprecated: Use GADAdSizeFullBanner [-Wdeprecated-declarations]
            bannerSize = kGADAdSizeFullBanner;
                         ^
	Line 247: 'kGADAdSizeLargeBanner' is deprecated: Use GADAdSizeLargeBanner [-Wdeprecated-declarations]
            bannerSize = kGADAdSizeLargeBanner;
                         ^
	Line 250: 'kGADAdSizeLeaderboard' is deprecated: Use GADAdSizeLeaderboard [-Wdeprecated-declarations]
            bannerSize = kGADAdSizeLeaderboard;
                         ^
	Line 253: 'kGADAdSizeMediumRectangle' is deprecated: Use GADAdSizeMediumRectangle [-Wdeprecated-declarations]
            bannerSize = kGADAdSizeMediumRectangle;
                         ^
	Line 286: enumeration value 'POS_NONE' not handled in switch [-Wswitch]
        switch (bannerSizeConst) {
                ^
	Line 286: add missing switch cases
        switch (bannerSizeConst) {
                ^
	Line 403: format specifies type 'char *' but the argument has type 'NSError *' [-Wformat]
            dmLogInfo("AdInspector Error: %s", error);
                                          ~~^~~~~
	Line 403: expanded from macro 'dmLogInfo'
#define dmLogInfo(format, args...) LogInternal(dmLog::LOG_SEVERITY_INFO, DLIB_LOG_DOMAIN, format, ## args);
                                                                                          ~~~~~~^~~~
/extension-admob/lib/ios/GoogleMobileAds.framework/Headers/GADAdSize.h
	Line 167: 'kGADAdSizeBanner' has been explicitly marked deprecated here
GAD_EXTERN GADAdSize const kGADAdSizeBanner GAD_DEPRECATED_MSG_ATTRIBUTE("Use GADAdSizeBanner");
                                            ^
	Line 171: 'kGADAdSizeLargeBanner' has been explicitly marked deprecated here
    GAD_DEPRECATED_MSG_ATTRIBUTE("Use GADAdSizeLargeBanner");
    ^
	Line 175: 'kGADAdSizeMediumRectangle' has been explicitly marked deprecated here
    GAD_DEPRECATED_MSG_ATTRIBUTE("Use GADAdSizeMediumRectangle");
    ^
	Line 180: 'kGADAdSizeFullBanner' has been explicitly marked deprecated here
    GAD_DEPRECATED_MSG_ATTRIBUTE("Use GADAdSizeFullBanner");
    ^
	Line 184: 'kGADAdSizeLeaderboard' has been explicitly marked deprecated here
    GAD_DEPRECATED_MSG_ATTRIBUTE("Use GADAdSizeLeaderboard");
    ^

```

---

<div class="post-metadata">

**Author:** ![AGulev](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/agulev/32/4541_2.png) [@AGulev](https://forum.defold.com/u/AGulev)\
**Post date:** [June 6, 2022, 9:22am UTC](https://forum.defold.com/t/failed-to-bundle-ios-application/71054/13 "2022-06-06T09:22:27Z")

</div>

> [@Dong\_Wang](#):
>
> `assign`

Could you pls show me IOS section from game.project?

 ![image](https://forum-defold-uploads.b-cdn.net/original/3X/8/7/870e7dbc6ae859387095dc05a8e104e288a872d6.jpeg)

---

<div class="post-metadata">

**Author:** ![Dong\_Wang](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/dong_wang/32/28542_2.png) [@Dong\_Wang](https://forum.defold.com/u/Dong_Wang)\
**Post date:** [June 6, 2022, 9:29am UTC](https://forum.defold.com/t/failed-to-bundle-ios-application/71054/14 "2022-06-06T09:29:08Z")

</div>

![Screen Shot 2022-06-06 at 5.25.37 PM](https://forum-defold-uploads.b-cdn.net/original/3X/e/c/eccecb90f3c9842b8d63a88095432aeb3c459b3e.png)

---

<div class="post-metadata">

**Author:** ![AGulev](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/agulev/32/4541_2.png) [@AGulev](https://forum.defold.com/u/AGulev)\
**Post date:** [June 6, 2022, 9:56am UTC](https://forum.defold.com/t/failed-to-bundle-ios-application/71054/15 "2022-06-06T09:56:05Z")

</div>

Could you pls also share list of your dependencies and options you are using for bundling? (also what build server you are using)  
Because I’m building iOS bundle without any issues, I need more info to figure that out.

 ![image](https://forum-defold-uploads.b-cdn.net/original/3X/7/e/7e8c3244d0c6b807757d0b6df92c0fe11e9ca0fc.png)

 ![image](https://forum-defold-uploads.b-cdn.net/original/3X/3/8/38fa146d99b7e2110246e50bd17d0b8af594ebd7.jpeg)  
 ![image](https://forum-defold-uploads.b-cdn.net/original/3X/2/4/2476c30b433b61e36c30b6be96bb8f1fae65f8d2.png)

---

<div class="post-metadata">

**Author:** ![Dong\_Wang](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/dong_wang/32/28542_2.png) [@Dong\_Wang](https://forum.defold.com/u/Dong_Wang)\
**Post date:** [June 6, 2022, 11:13am UTC](https://forum.defold.com/t/failed-to-bundle-ios-application/71054/16 "2022-06-06T11:13:22Z")

</div>

![Screen Shot 2022-06-06 at 7.08.14 PM](https://forum-defold-uploads.b-cdn.net/original/3X/9/7/9720e421b95bd9b27337069028b57a2ce2e63c63.png)  
 ![Screen Shot 2022-06-06 at 7.09.29 PM](https://forum-defold-uploads.b-cdn.net/original/3X/4/a/4abcd587739771b65cfc918c7a473e91a387a1c9.png)  
 ![Screen Shot 2022-06-06 at 7.13.02 PM](https://forum-defold-uploads.b-cdn.net/original/3X/5/5/551bcb0719cb9fb6225fa97472f63400c78342b9.png)

---

<div class="post-metadata">

**Author:** ![AGulev](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/agulev/32/4541_2.png) [@AGulev](https://forum.defold.com/u/AGulev)\
**Post date:** [June 6, 2022, 11:17am UTC](https://forum.defold.com/t/failed-to-bundle-ios-application/71054/17 "2022-06-06T11:17:09Z")

</div>

Ok, one more thing is your defog version (not only version but also SHA)

 ![image](https://forum-defold-uploads.b-cdn.net/original/3X/4/2/42335f353ee89c7daa539d7450d562df048c8b7b.jpeg)

---

<div class="post-metadata">

**Author:** ![Dong\_Wang](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/dong_wang/32/28542_2.png) [@Dong\_Wang](https://forum.defold.com/u/Dong_Wang)\
**Post date:** [June 6, 2022, 11:18am UTC](https://forum.defold.com/t/failed-to-bundle-ios-application/71054/18 "2022-06-06T11:18:47Z")

</div>

![Screen Shot 2022-06-06 at 7.17.58 PM](https://forum-defold-uploads.b-cdn.net/original/3X/2/5/2584fed84aa7ea86d899173af9d2aeae1b5d8308.png)

---

<div class="post-metadata">

**Author:** ![AGulev](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/agulev/32/4541_2.png) [@AGulev](https://forum.defold.com/u/AGulev)\
**Post date:** [June 6, 2022, 11:23am UTC](https://forum.defold.com/t/failed-to-bundle-ios-application/71054/19 "2022-06-06T11:23:57Z")

</div>

Sorry, but I can’t repo the issue you have,  
pls try to download the latest Defold 1.3.2 (or event 1.3.3 beta) and check it there  
Also, if you have a minimal repo project where you reproduce the issue pls share it.

---

<div class="post-metadata">

**Author:** ![Dong\_Wang](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/dong_wang/32/28542_2.png) [@Dong\_Wang](https://forum.defold.com/u/Dong_Wang)\
**Post date:** [June 6, 2022, 11:55am UTC](https://forum.defold.com/t/failed-to-bundle-ios-application/71054/20 "2022-06-06T11:55:11Z")

</div>

I tried to update defold to 1.3.2, but no luck. Same build error. For android bundle, it works like before. I have no idea why iOS not work. Does the extension admob android and iOS works in different way?

[Next page](https://forum.defold.com/t/failed-to-bundle-ios-application/71054.md?page=2)
