# 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:** 3

<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: [December 3, 2017, 10:27pm UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955/41 "2017-12-03T22:27:08Z")

</div>

I’m in no rush. Its ok to wait to tomorrow

---

<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: [December 3, 2017, 10:28pm UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955/42 "2017-12-03T22:28:01Z")

</div>

What am I missing? looks perfectly correct to me:

```auto
Reference 'libElements' was resolved to '/Users/JohnMoshakis/Documents/Elements/References/Toffee/watchOS/libElements.fx' via XML for target 'Toffee-watchOS'.
Reference 'libElements' was resolved to '/Users/JohnMoshakis/Documents/Elements/References/Toffee/watchOS/libElements.fx' for target 'Toffee-watchOS' (Device).
Reference 'libElements' was resolved to '/Users/JohnMoshakis/Documents/Elements/References/Toffee/watchOS Simulator/libElements.fx' for target 'Toffee-watchOS' (Simulator).

```

```auto
Reference 'libElements' was resolved to '/Users/JohnMoshakis/Documents/Elements/References/Toffee/iOS/libElements.fx' via XML for target 'Toffee-iOS'.
Reference 'libElements' was resolved to '/Users/JohnMoshakis/Documents/Elements/References/Toffee/iOS/libElements.fx' for target 'Toffee-iOS' (Device).
Reference 'libElements' was resolved to '/Users/JohnMoshakis/Documents/Elements/References/Toffee/iOS Simulator/libElements.fx' for target 'Toffee-iOS' (Simulator).

```

if you’d had kept the log level to Diagnostic, I could see the `ld` command thats being run, but since you haven’t, I can’t diagnose that part.

that said, can you send me the project?

---

<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: [December 3, 2017, 10:30pm UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955/43 "2017-12-03T22:30:21Z")

</div>

THAT said:

I’m not sure where \_\_\_RemObjects\_Elements\_RTL\_Foundation\_\_ExtensionsNSObject is _supposed_ to come from. RTL2 doesn’t;t seem to defined that, _unless_ name mangling has been broken in the compiler (@ck?) to generate that name w/o an extra \_.

but I just trried, creating an iOS project, using RTL2 and calling an NSObject extension method defined in RTL2, and all builds and links fine…

---

<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: [December 3, 2017, 10:34pm UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955/44 "2017-12-03T22:34:28Z")

</div>

That’s wrong isn’t it ?

I’m building for my iphone, so shouldnt that be iOS/libElements.fx ?

I’ll send you the complete project.

---

<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: [December 3, 2017, 10:37pm UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955/45 "2017-12-03T22:37:55Z")

</div>

> [@JohnMoshakis](#):
>
> That’s wrong isn’t it ?
> 
> I’m building for my iphone, so shouldnt that be iOS/libElements.fx ?

it is?

```auto
Reference 'libElements' was resolved to '/Users/JohnMoshakis/Documents/Elements/References/Toffee/iOS/libElements.fx' for target 'Toffee-iOS' (Device).

```

vs

```auto
Reference 'libElements' was resolved to '/Users/JohnMoshakis/Documents/Elements/References/Toffee/iOS Simulator/libElements.fx' for target 'Toffee-iOS' (Simulator).

```

looks perfectly correct to me (also, again, it’;d fail on a completely different issues, if it wasn’t). It’s using `iOS` for Device and `iOS Simulator` for Simulator (note that EBuild always resolves/lists _both_).

---

<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: [December 3, 2017, 11:01pm UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955/46 "2017-12-03T23:01:09Z")

</div>

I sent you a link to the zip file.

---

<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: [December 3, 2017, 11:17pm UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955/47 "2017-12-03T23:17:21Z")

</div>

Got it. But it doesn’t build here at all, with errors it’s getting too late to investigate :(. I’ll need to have a more though look, tomorrow.

—marc

---

<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: [December 3, 2017, 11:37pm UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955/48 "2017-12-03T23:37:28Z")

</div>

Ok, good news, it fails here with the same error. which means this is not a general problem with it picking the wrong libElements.fx, but sometime more concrete that’s tied to something your app calls (but none of the ones I test with do). I’ll investigate the issue more tomorrow and will probably end up logging a compiler bug for @ck.

(btw, you’ll hit an NRE when you build the SLN with only the iOS project enabled; that’s a known issue and I actually fixed that yesterday (it’s a problem with connecting project references if the referenced project is disabled).

---

<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: [December 3, 2017, 11:44pm UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955/49 "2017-12-03T23:44:08Z")

</div>

bugs://79147: iOS apps fails to link with “_OBJC\_CLASS_$\_\_\_RemObjects\_Elements\_RTL\_Foundation\_\_ExtensionsNSObject” not found

---

<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: [December 4, 2017, 12:05pm UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955/50 "2017-12-04T12:05:13Z")

</div>

Fixed, your iOS project now builds for me up to

```auto
                        -> Task RemObjects.EBuild.Elements.ElementsLocateProvisioningProfileToffee started for Toffee-watchOS.
E: No provisioning profile matching 'ff966a37-bf48-4ccf-83d1-946452d42c17' was found..
                           Available profiles:
                           | profile 'Curacao TV App Store 2017' (0dd4cee0-7bd6-487d-879e-7385da7992a1)
                           | profile 'Curaçao Weather 2017' (2259147c-9380-43b8-9589-fe3607ae2017)
                           | profile 'Dough 3 AdHoc - rev6' (66bfa0c2-37b2-4860-8b21-27eae3c9244c)
                        <- Task RemObjects.EBuild.Elements.ElementsLocateProvisioningProfileToffee failed, took 0.0125s (0.0128s).

```

which is of course expected to fail.

I’ve uploaded a new build for 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: [December 4, 2017, 10:25pm UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955/51 "2017-12-04T22:25:31Z")

</div>

all good now?

---

<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: [December 4, 2017, 10:52pm UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955/52 "2017-12-04T22:52:49Z")

</div>

Sorry I haven’t been able to check yet. I will be doing so shortly and seeing if I can deploy. I’ll let you know for sure.

---

<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: [December 5, 2017, 2:15am UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955/53 "2017-12-05T02:15:12Z")

</div>

It builds.

I get this error deploying

default 21:13:18.456620 -0500 crossboxhelper AMDeviceInstallApplication (thread 0x7fffb8dba340): ENTRY  
default 21:13:19.581400 -0500 crossboxhelper AMDErrorForMobileInstallationCallbackDict (thread 0x7fffb8dba340): GOT AN ERROR 0xe800009c  
default 21:13:19.581472 -0500 crossboxhelper perform\_command (thread 0x7fffb8dba340): There was an error communicating with the service agent: 0xe800009c  
default 21:13:19.581510 -0500 crossboxhelper AMDeviceSecureInstallApplication (thread 0x7fffb8dba340): Old style install failed for (PublicStaging/SailingLogiOS.app)  
default 21:13:19.581550 -0500 crossboxhelper AMDeviceSecureInstallApplication (thread 0x7fffb8dba340): Could not install package on device: kAMDMissingBundleVersionError

---

<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: [December 5, 2017, 2:17am UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955/54 "2017-12-05T02:17:43Z")

</div>

Curious. Will check in the morning.

---

<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: [December 5, 2017, 11:34am UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955/55 "2017-12-05T11:34:52Z")

</div>

Does setting a Bundle version in project settings fix this? (I’m fixing EBuild to set a default of 1.0)

---

<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: [December 6, 2017, 2:25am UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955/56 "2017-12-06T02:25:17Z")

</div>

Yes it does. Unfortunately the watch app doesn’t appear to want to install. I see the installing icon on the watch face and it shows progress but it doesnt get to 100% and the icon is removed.

I think this is the error

0x16f033000 -[ACXServerInstallOperation receivedDictionaryOrData:]: 591: Got error 17 in install done from remote side (MI error ApplicationVerificationFailed ; Extended 0xe8008001 ; Desc Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.9ewy9Q/extracted/Payload/iSailedWatchOS.app : 0xe8008001 (An unknown error has occurred.))

---

<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: [December 6, 2017, 3:02am UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955/57 "2017-12-06T03:02:36Z")

</div>

hmm, ok. as i mentioned, this was _always_ unreliable for me (but i never oursued it seriously). i take it you had no such problerms with the previous, xbuild-built version? can you send me both a “good” .app or .ipa, as well as the new one, so i can compare?

oh, any other messages in the _watch_ log (opposed to the iOS device’s)?

---

<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: [December 7, 2017, 2:56am UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955/58 "2017-12-07T02:56:32Z")

</div>

I sent you an email with the apps.

I’ve had no problems with xbuild once I got everything working. I have 2 functioning watch apps so I think its going really well 🙂

I’ve never had the watch log working either in or outside xcode. I’ll have another look.

---

<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: [December 7, 2017, 3:08am UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955/59 "2017-12-07T03:08:37Z")

</div>

Thanx, i’ll have a look and compare, tomorrow.

---

<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: [December 7, 2017, 11:42am UTC](https://talk.remobjects.com/t/fire-building-solution-containing-watchkit-app/14955/60 "2017-12-07T11:42:09Z")

</div>

- For one, the EBuild version seems to be missing the embedded 3P Frameworks. dd you change that, or should those be there? Does your _iOS_ app work, and just the watchOS one fails to deploy, or do both fail?

- PkgInfo is also missing (no not sure if that’s actually _needed_, but **fixed** ).

- Watch app and extension are not code-signed (this I **cannot repro**. maybe a setting in your project? here they get signed fine (after I changed the project to use may own profile/cert, ofc).

- The Watch app storyboard is not b being processed, but embedded as is (actually, it’s being processed, but added as subfolder, same as on iOS; seems watchOS whats that flattened. **fixed** ).

I’ll check into these.

Also, where these build against different SDK versions? I’m asking because all nib fils differ, and even the WK binary (which I just copy over).

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

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