Unable to load Preferences LC 9.6.9rc3 and Levure 9.0.5
Marty Knapp
martyknappster at gmail.com
Fri Apr 14 17:35:54 EDT 2023
I don’t have an “M” chip Mac here to test at the moment but here’s something to try:
In the Levure framework open the helpers folder and then the preferences folder
Modify the helper.yml file by deleting the section under externals so the file just contains the following
externals:
libraries:
- filename: preferences.livecodescript
extensions:
- filename: nsuserdefaults.lcm
engine version: ">=9.0"
platform: macos,ios
Then try a build and see how that works. I just tried it on my Intel iMac and preferences are working OK without the previous content.
Please let me know how it works on your “M” mac
Marty
> On Apr 10, 2023, at 3:23 AM, Mark Waddingham via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> On 2023-04-08 14:58, bob--- via use-livecode wrote:
>> I'm wondering if anyone might be able to help me out. I’m trying to
>> use LC 9.6.9rc3 with an app built with Levure. With LC 9.6.9rc2 I am
>> able to open the app in the IDE with no issue.
>> When I try to open the app with LC 9.6.9rc3 I get “An error occurred
>> while initializing the application [unable to load external
>> Preferences]”. I’m tracing through the Levure script now and can see
>> in fact the Preference stack is not being loaded. I’ve confirmed
>> Preferences.bundle is at the location referenced in the script.
>> Can anyone steer me in a direction for a fix to this?
>
> So you'll need to (for now) use `Get Info` on LiveCode.app in Finder, and ask it to 'open in rosetta'... Then when building any standalones, disable generating a the arm64 slice (you can do this in the MacOS pane of standalone settings).
>
> The reason is isn't working is that the preferences external included in Levure does not have a ARM64 slice - so won't load when the engine is running using that architecture.
>
> The preferences external will need to be rebuilt with an arm64 slice and included in Levure.
>
> (When looking at this the other day, I did notice that Levure has an LCB extension which can do preferences stuff on macOS - bypassing the need for an external, but I couldn't see how you opt to use that instead of the external).
>
> Warmest Regards,
>
> Mark.
>
> --
> Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/
> LiveCode: Build Amazing Things
More information about the use-livecode
mailing list