Unable to load Preferences LC 9.6.9rc3 and Levure 9.0.5

Mark Smith marksmithhfx at gmail.com
Tue Apr 18 06:36:10 EDT 2023


Marty, apologies, I forgot to add I am doing this on an “M” chip. 

Mark


> On 18 Apr 2023, at 10:42 am, Mark Smith <marksmithhfx at gmail.com> wrote:
> 
> Hi Marty, this worked like a charm. I was trying to open Trevor's dataview_demo and was getting the same “An error occurred while initialising the application…” msg. This fixed it. Thanks
> 
> Mark
> 
> 
>> On 14 Apr 2023, at 10:35 pm, Marty Knapp via use-livecode <use-livecode at lists.runrev.com> wrote:
>> 
>> 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
>> 
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 




More information about the use-livecode mailing list