# Fire: Building solution containing watchkit app

**URL:** https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955
**Category:** EBuild
**Created:** [November 29, 2017, 3:46am UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955 "2017-11-29T03:46:08Z")
**Posts on this page:** 20
**Page:** 6

<div class="post-metadata">

### Author: ![JohnMoshakis](https://talk.remobjects.com/user_avatar/talk.remobjects.com/johnmoshakis/32/2286_2.png) [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)
#### Post date: [January 7, 2018, 7:07am UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955/101 "2018-01-07T07:07:13Z")

</div>

I did a codesign -d --ent :- appfile

On the app I created with the latest it displays

```
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key></key>
	<string></string>
	<key>application-identifier</key>
	<string>G44A8EPVU8.com.moshine.isailed</string>
	<key>get-task-allow</key>
	<true/>
</dict>
</plist>

```

On an app I created a while back it shows

```
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>application-identifier</key>
	<string>G44A8EPVU8.com.moshine.isailed</string>
	<key>com.apple.developer.team-identifier</key>
	<string>G44A8EPVU8</string>
	<key>get-task-allow</key>
	<true/>
	<key>keychain-access-groups</key>
	<array>
		<string>G44A8EPVU8.com.moshine.isailed</string>
	</array>
</dict>
</plist>
```

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [January 7, 2018, 11:38am UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955/102 "2018-01-07T11:38:53Z")

</div>

> [@JohnMoshakis](#):
>
> The executable was signed with invalid entitlements.)}

can you send me both .app bundles, the good one create die in xcode and the bad one created with fire, with thes ame profile? given the error message, i’m expecting its a mismatch of the id or certificate vs the profile.

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [January 7, 2018, 8:57pm UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955/103 "2018-01-07T20:57:58Z")

</div>

Update: fund a problem, this doesn’t look right…

```auto
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
	<dict>
		<key/>
		<array/>
		<key/>
		<true/>
		<key/>
		<string/>
		<key/>
		<string/>
		<key>application-identifier</key>
		<string>24G43Y5373.com.dwarfland.weather.curacao.messageextension</string>
		<key>get-task-allow</key>
		<true/>
	</dict>
</plist>

```

now to check what broke this…

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [January 7, 2018, 9:28pm UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955/104 "2018-01-07T21:28:30Z")

</div>

Got it. PList merging code exposing a regression in RTL2;s XmlDocument.UniqueCopy. I’ve committed a temporary workaround (pending final/official fix), `20180107-212656-elements-develop` or later will have the fix.

---

<div class="post-metadata">

### Author: ![JohnMoshakis](https://talk.remobjects.com/user_avatar/talk.remobjects.com/johnmoshakis/32/2286_2.png) [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)
#### Post date: [January 8, 2018, 1:43am UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955/105 "2018-01-08T01:43:54Z")

</div>

I get this.

```
       /usr/bin/plutil -convert xml1 -o "/Users/JohnMoshakis/Library/Application Support/RemObjects/EBuild/Obj/DarkSkySimpleApp-CBEE8D29-791F-4F20-829E-3B423F258831/Debug/Toffee-iOS/Entitlements.sorted.entitlements" "/Users/JohnMoshakis/Library/Application Support/RemObjects/EBuild/Obj/DarkSkySimpleApp-CBEE8D29-791F-4F20-829E-3B423F258831/Debug/Toffee-iOS/Entitlements.entitlements"

```

E: Encountered unexpected character G on line 6 while looking for open tag / JSON error: JSON text did not start with array or object and option to allow fragments not set.  
E: Conversion of Entitlements .plist to XML format failed for ‘/Users/JohnMoshakis/Library/Application Support/RemObjects/EBuild/Obj/DarkSkySimpleApp-CBEE8D29-791F-4F20-829E-3B423F258831/Debug/Toffee-iOS/Entitlements.entitlements’

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [January 8, 2018, 2:48am UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955/106 "2018-01-08T02:48:42Z")

</div>

hmm. strange. can i see the file?

---

<div class="post-metadata">

### Author: ![JohnMoshakis](https://talk.remobjects.com/user_avatar/talk.remobjects.com/johnmoshakis/32/2286_2.png) [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)
#### Post date: [January 8, 2018, 3:03am UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955/107 "2018-01-08T03:03:38Z")

</div>

It happens with the table view example

[TableViewApp.zip](https://talk.remobjects.com/uploads/default/original/2X/f/f795f597ef4034844195f4f41e836c6d44b66d2e.zip) (120.8 KB)  
[Entitlements.entitlements.zip](https://talk.remobjects.com/uploads/default/original/2X/1/16904ef4eba0ccce0ddf2c163862a5d9111557c8.zip) (479 Bytes)

Ive attached the entitlement file it complains about.

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [January 8, 2018, 11:41am UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955/108 "2018-01-08T11:41:37Z")

</div>

Hmm, yeah, the XML is still broken. I’ll need to wait for @elenap to fix this properly tomorrow (Tuesday), sorry.

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [January 8, 2018, 4:04pm UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955/109 "2018-01-08T16:04:36Z")

</div>

Oh: workaround is providing your own .entitlements file rather than having the build use the entitlements from the profile; this way, the broken code won’t hit.

---

<div class="post-metadata">

### Author: ![JohnMoshakis](https://talk.remobjects.com/user_avatar/talk.remobjects.com/johnmoshakis/32/2286_2.png) [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)
#### Post date: [January 10, 2018, 12:34am UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955/110 "2018-01-10T00:34:42Z")

</div>

I tried with one of the builds from today and I’m able to deploy again.

---

<div class="post-metadata">

### Author: ![JohnMoshakis](https://talk.remobjects.com/user_avatar/talk.remobjects.com/johnmoshakis/32/2286_2.png) [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)
#### Post date: [January 19, 2018, 3:09am UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955/111 "2018-01-19T03:09:57Z")

</div>

Do you have ideas what might be causing this ?

Dec 22 00:48:28 John-s-AppleWatch iSailedWatchOSExtension(Foundation)[29668] : \*\*\* Assertion failure in void \_UIApplicationMainPreparations(int, char \*\*, NSString \*\_\_strong, NSString \*\_\_strong)(), /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit/UIKit-3698.33.3.601/UIApplication.m:3851  
Dec 22 00:48:28 John-s-AppleWatch iSailedWatchOSExtension(CoreFoundation)[29668] : \*\*\* Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘Unable to instantiate the UIApplication subclass instance. No class named SPApplication is loaded.’

This is when I attempt to launch the app from my watch.

It used to work with xbuild.

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [January 19, 2018, 11:29am UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955/112 "2018-01-19T11:29:34Z")

</div>

hard to say. what’s SPApplication, is that your class? is it maybe bettingname-mangled?

---

<div class="post-metadata">

### Author: ![JohnMoshakis](https://talk.remobjects.com/user_avatar/talk.remobjects.com/johnmoshakis/32/2286_2.png) [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)
#### Post date: [January 19, 2018, 4:45pm UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955/113 "2018-01-19T16:45:21Z")

</div>

I don’t know. I haven’t changed any of the class name provided by the template. I also don’t understand why it mentions UIApplication when thats a uikit class.

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [January 19, 2018, 5:32pm UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955/114 "2018-01-19T17:32:00Z")

</div>

UIApplication **subclass**.

Something tells the runtime to use SPApplication instead of UIApplication for the App object, and it cannot find it. Does this help: [https://stackoverflow.com/questions/32988266/unable-to-instantiate-the-uiapplication-subclass-instance-no-class-named-is](https://stackoverflow.com/questions/32988266/unable-to-instantiate-the-uiapplication-subclass-instance-no-class-named-is)? what’s in your Main()?

---

<div class="post-metadata">

### Author: ![JohnMoshakis](https://talk.remobjects.com/user_avatar/talk.remobjects.com/johnmoshakis/32/2286_2.png) [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)
#### Post date: [January 19, 2018, 6:21pm UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955/115 "2018-01-19T18:21:54Z")

</div>

It doesnt have one. Do you still have the sailinglog zip I sent you ?

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [January 19, 2018, 6:44pm UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955/116 "2018-01-19T18:44:40Z")

</div>

I do, yes. I cant find any reference to `SPApplication` in that one, anywhere… strange.

---

<div class="post-metadata">

### Author: ![JohnMoshakis](https://talk.remobjects.com/user_avatar/talk.remobjects.com/johnmoshakis/32/2286_2.png) [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)
#### Post date: [February 15, 2018, 6:38pm UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955/117 "2018-02-15T18:38:31Z")

</div>

I dont suppose any progress has been made on this issue ?

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [February 15, 2018, 6:39pm UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955/118 "2018-02-15T18:39:21Z")

</div>

I know nothing about this, sorry. SPApplication isn’t something we define, so if its not something you define either, I have no idea where it comes from ☹

---

<div class="post-metadata">

### Author: ![JohnMoshakis](https://talk.remobjects.com/user_avatar/talk.remobjects.com/johnmoshakis/32/2286_2.png) [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)
#### Post date: [February 15, 2018, 7:32pm UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955/119 "2018-02-15T19:32:41Z")

</div>

I used to be able deploy using xbuild, something isnt working in ebuild and I cant deploy.

The only error I can find is the one mentioned.

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [February 15, 2018, 8:04pm UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955/120 "2018-02-15T20:04:06Z")

</div>

does the same project still deploy with xbuild? if so, can you send me both .app bundles, zipped up (her both .ipas)?

At tis stage of EBuild’s evolution, I’d be _highly_ surprised if its something EBuild is doing wrong/differently that’s causing the difference, especially since we already combed thru all the metadata files earlier and sorted out all the differences./inconsistencies there…

[Previous page](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955.md?page=5)

[Next page](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955.md?page=7)
