Undefined symbols

Hi,

I was able to get a swift app using xcode to call a method on a class created using oxygene, so Im trying something more complex. I have added 3 of my static libraries and libElements.a as references and Im getting undefined symbols for

Undefined symbols for architecture arm64_32:
“___ElementsCocoaVersion”, referenced from:
+[__RemObjects_Elements_RTL_Environment GetOSVersion] in Elements.a(Environment-81ecf948d08adea5435f22cae0564f5e.o)
OBJC_CLASS$___ElementsBoxedStruct”, referenced from:
objc-class-ref in Elements.a(Range-eb902fbf730d4f3b3766cd34a0f7b1be.o)
OBJC_CLASS$___ElementsBoxedChar”, referenced from:
objc-class-ref in Elements.a(Convert-05fc323a40b901913f55360bbae19e28.o)
objc-class-ref in Elements.a(String.GetSequenced__0-2f87c8fe92b4a5d75ed182e7c6fa02f8.o)
objc-class-ref in Elements.a(XmlParser-6c812e3dc8ec9e44a3c8241134a9559c.o)
objc-class-ref in Elements.a(XmlNode-95f01a8756a0d636a9925556fe08c1cf.o)
objc-class-ref in Elements.a(XmlAttribute-90c2c65e25647c1daddc38ca73b3a4e9.o)
OBJC_CLASS$___Oxygene_Future”, referenced from:
objc-class-ref in Elements.a(HttpResponse-c6ce8a78ead09c0ca1ace791b5d029eb.o)
OBJC_CLASS$_ArrayUtils”, referenced from:
objc-class-ref in Elements.a(JsonArray-30ac85e34601368bbf57a050948abbf7.o)
objc-class-ref in Elements.a(String-c6b84b2a8e8ec3d6961602e659631c66.o)
“_RemObjects_Elements_Futures___Oxygene_Future_Helper<>c__DisplayClass1 b__0$0”, referenced from:
-[__RemObjects_Elements_RTL_HttpResponse SaveContentAsFile::] in Elements.a(HttpResponse-c6ce8a78ead09c0ca1ace791b5d029eb.o)
“___ElementsClassLockExit”, referenced from:
+[__RemObjects_Elements_RTL_String $__initialize] in Elements.a(String-c6b84b2a8e8ec3d6961602e659631c66.o)
“___ElementsClassLockEnter”, referenced from:
+[__RemObjects_Elements_RTL_String $__initialize] in Elements.a(String-c6b84b2a8e8ec3d6961602e659631c66.o)
OBJC_CLASS$_Foundation__Extensions”, referenced from:
objc-class-ref in Moshine.Api.Weather.a(StormGlassProxy-355d31a85d72526dd1c07273091901ec.o)
objc-class-ref in Moshine.Api.Weather.a(StormGlassForecast-fc976dca87f903c4545ee90c61d0ec5d.o)
objc-class-ref in Elements.a(JsonArray-30ac85e34601368bbf57a050948abbf7.o)
objc-class-ref in Elements.a(File-e75083e8f12a43364059c69f329a140d.o)
objc-class-ref in Elements.a(ImmutableDictionary-4950d1490519639d79cbbf73e2596fad.o)
objc-class-ref in Elements.a(ImmutableList-5d07d281556a3f9d0bd0a963688aa141.o)
objc-class-ref in Elements.a(List-9f4c68b0277aa105355287407108ff79.o)

“___ElementsNullReferenceRaiseException”, referenced from:
-[StormGlassProxy GetCurrentConditions:] in Moshine.Api.Weather.a(StormGlassProxy-355d31a85d72526dd1c07273091901ec.o)
-[StormGlassProxy GetForecast:] in Moshine.Api.Weather.a(StormGlassProxy-355d31a85d72526dd1c07273091901ec.o)
+[DateExtensions FormatterForParsing1] in Moshine.Foundation.a(DateExtensions-6117ef25577963717d1a3ba7c31ce476.o)
+[DateExtensions FormatterForParsing2] in Moshine.Foundation.a(DateExtensions-6117ef25577963717d1a3ba7c31ce476.o)
+[DateExtensions FormatterForToString] in Moshine.Foundation.a(DateExtensions-6117ef25577963717d1a3ba7c31ce476.o)
+[DateExtensions ParseISO8601DateTime:] in Moshine.Foundation.a(DateExtensions-6117ef25577963717d1a3ba7c31ce476.o)
+[DateExtensions ToISO8601:] in Moshine.Foundation.a(DateExtensions-6117ef25577963717d1a3ba7c31ce476.o)

Any ideas what I might do to solve this ?

Cheers,
John

I forgot to add libToffee as a reference.

1 Like

yep. that’s in libToffee. every Toffee binary needs that linked.