Fire can't run my app on real device on simulator all works fine

I have very latest Elements, but very little changed since last Friday. you have last Friday’s build, right?

10.0.0.2617

Can you try with very latest? 2623? I don’t think the last fixes I made here were after .2617, but cant hurt. Inn general’s I always recommend testing against latest, when something does not work as expected, as we fix so much stuff, every single week…

Without success too…log_device.txt (20.6 KB)
After another clean/rebuild I have for simulator
log_device.txt (71.3 KB)

I have only Device folder , don’t have simulator …
In debug I have only app for Device not simulator from default should it generate for both ?
When I choose Simulator and rebuild I have
Could not locate appropriate ‘libclang_rt.iossim.a’ in Xcode but when I choose my real device i don’t have any errors.

Yeah, its weird. re build should always build (and import) bot sim and device. and it does for you too:

            -> Task RemObjects.EBuild.Elements.ElementsCopyFinalOutput started for MQTTClient (Import).
DFF12000E0A9F84015653D186F68FAEE7440EB39/Debug/Toffee-iOS/Simulator/MQTTClient.fx)
               Final Output for 'MQTTClient (Import)' target 'Toffee-iOS':
                 MQTTClient.framework (/Users/mateusz/Downloads/AppMQTT/Bin/Debug/iOS/MQTTClient.framework)
                 MQTTClient.framework (/Users/mateusz/Downloads/AppMQTT/Bin/Debug/iOS Simulator/MQTTClient.framework)
                 MQTTClient.frameworkz (/Users/mateusz/Downloads/AppMQTT/Bin/Debug/iOS/MQTTClient.frameworkz)
                 MQTTClient.frameworkz (/Users/mateusz/Downloads/AppMQTT/Bin/Debug/iOS Simulator/MQTTClient.frameworkz)
                 MQTTClient.fx (/Users/mateusz/Downloads/AppMQTT/Bin/Debug/iOS/MQTTClient.fx)
                 MQTTClient.fx (/Users/mateusz/Downloads/AppMQTT/Bin/Debug/iOS Simulator/MQTTClient.fx)
               Final Output for Referencing:
                 MQTTClient (/Users/mateusz/Library/Application Support/RemObjects Software/EBuild/Obj/MQTTClient (Import)-DFF12000E0A9F84015653D186F68FAEE7440EB39/Debug/Toffee-iOS/Device/MQTTClient.fx), Toffee-iOS
            <- Task RemObjects.EBuild.Elements.ElementsCopyFinalOutput finished for MQTTClient (Import), took 4,1938s (25.017s).

so thats good. but then you get

D:                   Project Reference 'MQTTClient (Import)' will resolve using target 'Toffee-iOS'.
                     Project Reference 'MQTTClient (Import)' was resolved to '/Users/mateusz/Library/Application Support/RemObjects Software/EBuild/Obj/MQTTClient (Import)-DFF12000E0A9F84015653D186F68FAEE7440EB39/Debug/Toffee-iOS/Device/MQTTClient.fx' via target 'Toffee-iOS'.
                     Reference 'MQTTClient' was resolved to '/Users/mateusz/Library/Application Support/RemObjects Software/EBuild/Obj/MQTTClient (Import)-DFF12000E0A9F84015653D186F68FAEE7440EB39/Debug/Toffee-iOS/Device/MQTTClient.fx' for target 'Toffee-iOS' (Device).
                     Reference 'MQTTClient' was resolved to '/Users/mateusz/Library/Application Support/RemObjects Software/EBuild/Obj/MQTTClient (Import)-DFF12000E0A9F84015653D186F68FAEE7440EB39/Debug/Toffee-iOS/Simulator/MQTTClient.fx' for target 'Toffee-iOS' (Simulator).

and this still looks good, too. it picks the right file for each…

but WAIT, thats no longer the error

               -> Task Link started for AppMQTT, Toffee-iOS.
                  -> Phase Linking for Device started.
D:                   /Users/mh/Applications/Xcode-12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld -arch arm64 -o "/Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/AppMQTT-F2C58C2678A04B331D27F0A283FE82DAD9B886FC/Debug/Toffee-iOS/Device/arm64/AppMQTT" "/Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/AppMQTT-F2C58C2678A04B331D27F0A283FE82DAD9B886FC/Debug/Toffee-iOS/Device/arm64/AppMQTT.a" "/Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/AppMQTT-F2C58C2678A04B331D27F0A283FE82DAD9B886FC/Debug/Toffee-iOS/Device/arm64/AppMQTT.o" -lSystem -lobjc -u ___ElementsObjcClassInfoToString -lElements -lToffee -lxml2 -L/Users/mh/Code/Elements/Bin/References/Toffee/iOS -framework CloudKit -framework CoreFoundation -framework CoreGraphics -framework Foundation -framework Intents -framework MQTTClient -framework UIKit -framework UserNotifications "-F/Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/MQTTClient (Import)-2EEDE618C2512513D40C5DBB0DD4460362433F69/Debug/Toffee-iOS/Device" -ios_version_min 11.0 -ObjC -dynamic -demangle -force_load /Users/mh/Applications/Xcode-12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/lib/darwin/libclang_rt.ios.a -dead_strip -rpath @executable_path -rpath @executable_path/Frameworks -syslibroot /Users/mh/Applications/Xcode-12.4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk -F/Users/mh/Applications/Xcode-12.4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks
W:                   ld: ignoring file /Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/MQTTClient (Import)-2EEDE618C2512513D40C5DBB0DD4460362433F69/Debug/Toffee-iOS/Device/MQTTClient.framework/MQTTClient, building for iOS-arm64 but attempting to link with file built for iOS Simulator-x86_64
                  <- Phase Linking for Device finished.
                  -> Phase Linking for Simulator started.
D:                   /Users/mh/Applications/Xcode-12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld -arch x86_64 -o "/Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/AppMQTT-F2C58C2678A04B331D27F0A283FE82DAD9B886FC/Debug/Toffee-iOS/Simulator/x86_64/AppMQTT" "/Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/AppMQTT-F2C58C2678A04B331D27F0A283FE82DAD9B886FC/Debug/Toffee-iOS/Simulator/x86_64/AppMQTT.a" "/Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/AppMQTT-F2C58C2678A04B331D27F0A283FE82DAD9B886FC/Debug/Toffee-iOS/Simulator/x86_64/AppMQTT.o" -lSystem -lobjc -u ___ElementsObjcClassInfoToString -lElements -lToffee -lxml2 "-L/Users/mh/Code/Elements/Bin/References/Toffee/iOS Simulator" -framework CloudKit -framework CoreFoundation -framework CoreGraphics -framework Foundation -framework Intents -framework MQTTClient -framework UIKit -framework UserNotifications "-F/Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/MQTTClient (Import)-2EEDE618C2512513D40C5DBB0DD4460362433F69/Debug/Toffee-iOS/Simulator" -ios_simulator_version_min 11.0 -ObjC -dynamic -demangle -force_load /Users/mh/Applications/Xcode-12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/lib/darwin/libclang_rt.iossim.a -dead_strip -rpath @executable_path -rpath @executable_path/Frameworks -objc_abi_version 2 -no_implicit_dylibs -syslibroot /Users/mh/Applications/Xcode-12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk -F/Users/mh/Applications/Xcode-12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks
                  <- Phase Linking for Simulator finished.
               <- Task Link finished for AppMQTT, Toffee-iOS, took 0.5739s (0.574s).

I have the same message about the ignored framework, but thats not what fails you.

                  -> Phase Linking for Simulator started.
E:                   Could not locate appropriate 'libclang_rt.iossim.a' in Xcode.
                  <- Phase Linking for Simulator failed.

this is what it fails on. I wonder if they renamed that between 11 and 12, and a recent fix broke this for 11. I’ll check meantime, can yu check if updating to Xcode 12 fixes this for you? Apple requires Xcode 12/iOS 14 SDKs for new App Store uploads, anyways…

That said, the

W:                   ld: ignoring file /Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/MQTTClient (Import)-2EEDE618C2512513D40C5DBB0DD4460362433F69/Debug/Toffee-iOS/Device/MQTTClient.framework/MQTTClient, building for iOS-arm64 but attempting to link with file built for iOS Simulator-x86_64

is still odd, so I’ll investigate that more as well.

Should I Update to new 12 xcode and try ?
In Xcode all still works …

yes

Yes, this is (probably) a bug in EBuild, that we don’t handle where this file we;'re looking for is located in the older Xcode. I made a fix there recently, not realizing that that fix would be avid for Xcode 12 only, I expect. I’m downloading Xcode 11 not to test/fix.

This was a fix from March 3: “Toffee: wrong libclang version was used for sim”.


This one is user error:

➜  Cherry:~/ # file /Users/mh/Downloads/AppMQTT/mqtt/iOS/MQTTClient.framework/MQTTClient
/Users/mh/Downloads/AppMQTT/mqtt/iOS/MQTTClient.framework/MQTTClient: Mach-O 64-bit dynamically linked shared library x86_64

the original framework is already bad. iOS/MQTTClient.framework contains a simulator binary. wherever you got this from, its not the device build. in fact, your iOS and iOS Simulator folders are identical, they both have the same (simulator) version of the framework:

.

Too many information for me right now :slight_smile:
Summary up :
1.Update to Xcode 12
2.Bad framework for MQTTClient as I Understood.

Yes. :wink:

Thank you. I will try all things with your direction.

1 Like

Xcode 11 regression fixed.

I can’t update to macos 11 my hardware isn’t compatible.
Can you generate for me personal download ?

We’ll have the official Fire build for today out in 2-3 hours, will that suffice? (actually, it’ll have ti since we don’t even have a just-Elements build with the fix in, yet, and I’m starting the official build now… ;).

But interesting that effectively Apple now doesn’t let people, who cant run Big Sur submit App Store uploads anymore. that seems drastic and too soon…

1 Like

I will wait :slight_smile: but please add this fix to this version.

Yes, it’s already committed and merged, no worry.

1 Like

I will try later but my mac pro isn`t on this list.
I Think i Should decide not the Apple.

New build is out now.

but also:

Xcode 12.0 will still work on Catalina. only 12.3 or 12.4 (forgot which one exactly) and later require Big Sur…

So I still recommend getting that an Xcode 12.x that works for you; with 11.x you won’t be able to upload to the store.

Ok. I WILL Get the latest xcode12 accessible version for my mac.
Thank you

1 Like