Fire: Building solution containing watchkit app

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>

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.

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

<?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…

1 Like

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.

1 Like

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’

hmm. strange. can i see the file?

It happens with the table view example

TableViewApp.zip (120.8 KB)
Entitlements.entitlements.zip (479 Bytes)

Ive attached the entitlement file it complains about.

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

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.

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

1 Like

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.

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

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.

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? what’s in your Main()?

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

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

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

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 :frowning:

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.

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…