Could not resolve reference 'Realm' for target 'Toffee.iOS' (UIKit for Mac)

Hi,
In the latest I get this, why does it say UIKit for Mac when I only have Toffee.iOS and Toffee.WatchOS targets ?

Cheers,
John

Moshine.Location.zip (865.4 KB)
Its strange.If I do a rebuild I get the error but if I then do a build after that, it builds ok.

Any chance we could be more concrete than this?

It was 2593 but I see there is now a 2595, so I’ll try that.

I get the same issue with 2595

Im not sure this is the same issue but I have a iOS Toffee app to which I have added the projects in this solution as references and Im getting

Could not resolve reference ‘Moshine.Api.Location’ for target ‘Island.Darwin.iOS’ (Simulator-x86_64).
Could not resolve reference ‘Moshine.Api.Location’ for target ‘Island.Darwin.iOS’ (Mac-x86_64).
Could not resolve reference ‘Moshine.Api.Location’ for target ‘Island.Darwin.iOS’ (Simulator-x86_64).
Could not resolve reference ‘Moshine.Api.Location’ for target ‘Island.Darwin.iOS’ (Mac-x86_64).
Could not resolve reference ‘Moshine.Api.Location’ for target ‘Island.Darwin.watchOS’ (Simulator-x86_64).
Could not resolve reference ‘Moshine.Api.Location’ for target ‘Island.Darwin.watchOS’ (Simulator-x86_64).

Why would it be trying to resolve Darwin references ?

Can I get a testcase that doesn’t t require git lfs?

Moshine.Location.zip (802.7 KB)

nope.

/Users/mh/Code/Fire/Bin/Build/macOS/Fire.app/Contents/Resources/Mono/bin/mono-sgen /Users/mh/Code/EBuild/Bin/EBuild.exe "/Users/mh/Downloads/Moshine.Location 2/Moshine.Location.sln" --logger:fire --configuration:Debug --no-goal --setting:F60F0C65-2EFD-4D72-B378-72C746FBDBDD,Island.Darwin.iOS,Simulator=False --setting:F60F0C65-2EFD-4D72-B378-72C746FBDBDD,Island.Darwin.iOS,Mac=False --setting:F60F0C65-2EFD-4D72-B378-72C746FBDBDD,Island.Darwin.iOS,Device=True --setting:F60F0C65-2EFD-4D72-B378-72C746FBDBDD,Island.Darwin.tvOS,Simulator=False --setting:F60F0C65-2EFD-4D72-B378-72C746FBDBDD,Island.Darwin.tvOS,Device=True --setting:F60F0C65-2EFD-4D72-B378-72C746FBDBDD,Toffee.iOS,Simulator=False --setting:F60F0C65-2EFD-4D72-B378-72C746FBDBDD,Toffee.iOS,Mac=False --setting:F60F0C65-2EFD-4D72-B378-72C746FBDBDD,Toffee.iOS,Device=True --setting:F60F0C65-2EFD-4D72-B378-72C746FBDBDD,Toffee.macOS,Device=True --setting:F60F0C65-2EFD-4D72-B378-72C746FBDBDD,Toffee.tvOS,Simulator=False --setting:F60F0C65-2EFD-4D72-B378-72C746FBDBDD,Toffee.tvOS,Device=True --setting:F60F0C65-2EFD-4D72-B378-72C746FBDBDD,Island.Darwin.watchOS,Simulator=False --setting:F60F0C65-2EFD-4D72-B378-72C746FBDBDD,Island.Darwin.watchOS,Device=True --setting:F60F0C65-2EFD-4D72-B378-72C746FBDBDD,Toffee.watchOS,Simulator=False --setting:F60F0C65-2EFD-4D72-B378-72C746FBDBDD,Toffee.watchOS,Device=True --setting:F60F0C65-2EFD-4D72-B378-72C746FBDBDD,Island.Darwin.macOS,Device=True --setting:2FD9A150-1132-4BD4-913A-9637AD795B93,Island.Darwin.iOS,Simulator=False --setting:2FD9A150-1132-4BD4-913A-9637AD795B93,Island.Darwin.iOS,Mac=False --setting:2FD9A150-1132-4BD4-913A-9637AD795B93,Island.Darwin.iOS,Device=True --setting:2FD9A150-1132-4BD4-913A-9637AD795B93,Toffee.iOS,Simulator=False --setting:2FD9A150-1132-4BD4-913A-9637AD795B93,Toffee.iOS,Mac=False --setting:2FD9A150-1132-4BD4-913A-9637AD795B93,Toffee.iOS,Device=True --setting:2FD9A150-1132-4BD4-913A-9637AD795B93,Toffee.watchOS,Simulator=False --setting:2FD9A150-1132-4BD4-913A-9637AD795B93,Toffee.watchOS,Device=True --setting:2FD9A150-1132-4BD4-913A-9637AD795B93,Island.Darwin.watchOS,Simulator=False --setting:2FD9A150-1132-4BD4-913A-9637AD795B93,Island.Darwin.watchOS,Device=True --debug --statistics --verbosity:diagnostic --xml:/var/folders/9f/k6_0xsw91hdbgjgkby0zs6xc0000gn/T/Moshine.Location.fire.xml --build --setting:TreatFixableErrorsAsWarnings=True --setting:EBuild:ElementsCompilerDll=/Users/mh/Code/Elements/Bin/RemObjects.Elements.dll
RemObjects EBuild. An open source build engine for Elements and beyond.
Copyright RemObjects Software 2016-. All Rights Reserved. Created by marc hoffman.
Local build.

   Cloning https://github.com/mosh/RealmImport to /Users/mh/Library/Application Support/RemObjects Software/EBuild/Packages/EBuild/github.com.mosh.RealmImport
   > git: Cloning into '/Users/mh/Library/Application Support/RemObjects Software/EBuild/Packages/EBuild/github.com.mosh.RealmImport'...
   > git: Already on 'master'
   > git: Your branch is up to date with 'origin/master'.
   > git: git: 'lfs' is not a git command. See 'git --help'.
   > git: 
   > git: The most similar command is
   > git:         log
E: There was a problem obtaining remote project 'github.com/mosh/RealmImport/Realm.elements:*' referenced from 'Moshine.Services.Location'.

Sorry I must of turned it on for everything when I was trying to get the other project working inside EBuild. I’ll sort out the repo.

1 Like

I had left the lfs element in the elements file.

Moshine.Location.zip (783.7 KB)

reproduced; will investigate in a bit.

Fixed; the problem was Moshine.Api.Location was only built for device, but Island resolve (unlike Toffee) enforced that the reference was resolved for all build destinations (ie Simulator, too).

workaround would be to do a rebuild, for now.

1 Like

I was also having a problem using the reference in a Toffee iOS app when build for the simulator. Would that fix also apply for this situation ?

No, this bug was Island-speicifc; toffee already had the check in place to only enforce the reference is resolved for all enabled build destination… Do you have a repro for there Toffee issue?

FWIW, your project has these references for Toffee, but only failed on Island…?

Yes

MultiApp.zip (158.6 KB)

git: git: ‘lfs’ is not a git command. See ‘git --help’.

Sorry I forgot to push the removal of the LFS element. It should be ok now.

I get

E:                Could not find .fx file "Realm" referenced from "libMoshine.Services.Location.fx" // NE3 Could not find .fx file "Realm" referenced from "libMoshine.Services.Location.fx"

with this, which seems valid, as Realm isn’t referenced.

these two seem to resolve w/o problem for Sim and Device.

                  Reference: /Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/Moshine.Api.Location-CA397685442D5FA6D0FD30F1050705C18A03ABB2/Debug/Toffee.iOS/Device/libMoshine.Api.Location.fx
                  Reference: /Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/Moshine.Services.Location-FADA846F616EB73277859E9983B3CEBE474A2E7D/Debug/Toffee.iOS/Device/libMoshine.Services.Location.fx

via

                     Reference 'libMoshine.Api.Location' already was resolved to '/Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/Moshine.Api.Location-CA397685442D5FA6D0FD30F1050705C18A03ABB2/Debug/Toffee.iOS/Device/libMoshine.Api.Location.fx' for target 'Toffee-iOS'.
                     Reference 'libMoshine.Api.Location' was resolved to '/Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/Moshine.Api.Location-CA397685442D5FA6D0FD30F1050705C18A03ABB2/Debug/Toffee.iOS/Device/libMoshine.Api.Location.fx' for target 'Toffee-iOS' (Device).
                     Reference 'libMoshine.Api.Location' was resolved to '/Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/Moshine.Api.Location-CA397685442D5FA6D0FD30F1050705C18A03ABB2/Debug/Toffee.iOS/Simulator/libMoshine.Api.Location.fx' for target 'Toffee-iOS' (Simulator).
                     Reference 'libMoshine.Services.Location' already was resolved to '/Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/Moshine.Services.Location-FADA846F616EB73277859E9983B3CEBE474A2E7D/Debug/Toffee.iOS/Device/libMoshine.Services.Location.fx' for target 'Toffee-iOS'.
                     Reference 'libMoshine.Services.Location' was resolved to '/Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/Moshine.Services.Location-FADA846F616EB73277859E9983B3CEBE474A2E7D/Debug/Toffee.iOS/Device/libMoshine.Services.Location.fx' for target 'Toffee-iOS' (Device).
                     Reference 'libMoshine.Services.Location' was resolved to '/Users/mh/Library/Application Support/RemObjects Software/EBuild/Obj/Moshine.Services.Location-FADA846F616EB73277859E9983B3CEBE474A2E7D/Debug/Toffee.iOS/Simulator/libMoshine.Services.Location.fx' for target 'Toffee-iOS' (Simulator).