# Difficulty Deploying to iOS (DEF-1672) (SOLVED)

**URL:** <https://forum.defold.com/t/difficulty-deploying-to-ios-def-1672-solved/599>\
**Category:** Bugs\
**Created:** [December 8, 2015, 2:57pm UTC](https://forum.defold.com/t/difficulty-deploying-to-ios-def-1672-solved/599 "2015-12-08T14:57:27Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![amanset](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/a/8dc957/32.png) [@amanset](https://forum.defold.com/u/amanset)\
**Post date:** [December 8, 2015, 2:57pm UTC](https://forum.defold.com/t/difficulty-deploying-to-ios-def-1672-solved/599/1 "2015-12-08T14:57:27Z")

</div>

As running the game via the Defold app wasn’t giving me the right resolution, I wanted to check how it looks with a normal ipa. But I just can’t seem to get it to work.

I have a developer account.  
I have a provisioning profile (it is a wildcard one for all development com.[my signifier].\*)  
I have set the bundle identifier in game.project as com.[my signifier].[app name]  
This account and provisioning profile successfully built the dmengine app.

So I:  
Choose Project-\>Bundle-\>iOS Application  
Leave “Release Mode” unchecked  
Choose my “Code Signing Identity”. I only have one option.  
Choose the wildcard provisioning profile

The app then builds, leaving me with an ipa and app file.

So I then go into Xcode and choose Window-\>Devices  
I click the + to add an app and double click my ipa file in the file requester.

I get the error:  
“[ipa filename] cannot be installed on [my device name]. [ipa filename] does not contain an application bundle.”

Does anyone have any idea? Do I need to create an info.plist and select it in game.project? If so, what does it need to contain?

---

<div class="post-metadata">

**Author:** ![sicher](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/sicher/32/8_2.png) [@sicher](https://forum.defold.com/u/sicher)\
**Post date:** [December 8, 2015, 7:51pm UTC](https://forum.defold.com/t/difficulty-deploying-to-ios-def-1672-solved/599/2 "2015-12-08T19:51:12Z")

</div>

I usually just drag the ipa into iTunes and have it install through there. You do not need an info.plist. One is generated for you.

---

<div class="post-metadata">

**Author:** ![amanset](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/a/8dc957/32.png) [@amanset](https://forum.defold.com/u/amanset)\
**Post date:** [December 8, 2015, 11:22pm UTC](https://forum.defold.com/t/difficulty-deploying-to-ios-def-1672-solved/599/3 "2015-12-08T23:22:10Z")

</div>

I’ll try that tomorrow. This device has never actually been synced with the development Mac so I was reluctant to try that, but it looks like it may be the best option.

---

<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:** [December 10, 2015, 12:30pm UTC](https://forum.defold.com/t/difficulty-deploying-to-ios-def-1672-solved/599/4 "2015-12-10T12:30:15Z")

</div>

I can also suggest using the “ios-deploy” tool: [GitHub - ios-control/ios-deploy: Install and debug iPhone apps from the command line, without using Xcode · GitHub](https://github.com/phonegap/ios-deploy)

It allows you to deploy a bundle easily:  
`$ ios-deploy --bundle mybundle.ipa`

---

<div class="post-metadata">

**Author:** ![amanset](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/a/8dc957/32.png) [@amanset](https://forum.defold.com/u/amanset)\
**Post date:** [December 11, 2015, 12:59pm UTC](https://forum.defold.com/t/difficulty-deploying-to-ios-def-1672-solved/599/5 "2015-12-11T12:59:11Z")

</div>

Cheers, I’ll have a look into that.

---

<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:** [December 12, 2015, 3:19pm UTC](https://forum.defold.com/t/difficulty-deploying-to-ios-def-1672-solved/599/6 "2015-12-12T15:19:01Z")

</div>

+1 for ios-deploy! It’s a very handy command line tool.

---

<div class="post-metadata">

**Author:** ![Niklas\_Westberg](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/n/76d3ee/32.png) [@Niklas\_Westberg](https://forum.defold.com/u/Niklas_Westberg)\
**Post date:** [March 4, 2016, 2:03pm UTC](https://forum.defold.com/t/difficulty-deploying-to-ios-def-1672-solved/599/7 "2016-03-04T14:03:27Z")

</div>

I got the same error when trying to deploy an IPA created by Defold through XCode-\>Devices.  
When trying to install the .app instead of the .ipa, I got this: _“CFBundleExecutable” specifies a file that is not executable_  
After setting the executable bit for the exe file, like:

```
> cd PetRescueVS.app
> chmod +x PetRescueVS 

```

I could then install it properly. So this issue can probably be solved if Defold enforces the file flag.

---

<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:** [March 8, 2016, 4:02pm UTC](https://forum.defold.com/t/difficulty-deploying-to-ios-def-1672-solved/599/8 "2016-03-08T16:02:53Z")

</div>

I have added a new ticket for this issue: DEF-1672

---

<div class="post-metadata">

**Author:** ![cz\_nikita](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/c/4491bb/32.png) [@cz\_nikita](https://forum.defold.com/u/cz_nikita)\
**Post date:** [May 2, 2016, 1:15pm UTC](https://forum.defold.com/t/difficulty-deploying-to-ios-def-1672-solved/599/9 "2016-05-02T13:15:25Z")

</div>

I’ve got same error: [https://forum.defold.com/t/cannot-install-ipa-to-ios-device/1743](https://forum.defold.com/t/cannot-install-ipa-to-ios-device/1743)

---

<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:** [May 2, 2016, 1:51pm UTC](https://forum.defold.com/t/difficulty-deploying-to-ios-def-1672-solved/599/10 "2016-05-02T13:51:54Z")

</div>

This will be solved in the release later today. Correct me if I’m wrong here @jakob.pogulis.

---

<div class="post-metadata">

**Author:** ![jakob.pogulis](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/jakob.pogulis/32/557_2.png) [@jakob.pogulis](https://forum.defold.com/u/jakob.pogulis)\
**Post date:** [May 2, 2016, 1:57pm UTC](https://forum.defold.com/t/difficulty-deploying-to-ios-def-1672-solved/599/11 "2016-05-02T13:57:59Z")

</div>

Yeah, this should be fixed in 1.2.80 🙂

---

<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:** [November 21, 2016, 7:54pm UTC](https://forum.defold.com/t/difficulty-deploying-to-ios-def-1672-solved/599/12 "2016-11-21T19:54:15Z")

</div>

Executable bit set on bundle in Defold 1.2.93: [Defold 1.2.93 has been released](https://forum.defold.com/t/defold-1-2-93-has-been-released/3465)
