iOS 12.2 Symbol not found: _OBJC_CLASS_$__TtCs12_SwiftObject

I installed XCode Version 10.2 beta 3 (10P99q) on my development Mac running 10.14.4 Beta (18E194d) and installed iOS 12.2 (16E5191d) on an iPad and when I build and run a Swift app on the iPad it crashes during loading with:


dyld: Symbol not found: _OBJC_CLASS_$__TtCs12_SwiftObject

Referenced from: /var/containers/Bundle/Application/16B3DA1B-3449-46A3-9DF8-DB70FFB87F66/OurApp.app/OurApp

Expected in: /usr/lib/swift/libswiftCore.dylib

in /var/containers/Bundle/Application/16B3DA1B-3449-46A3-9DF8-DB70FFB87F66/OurApp.app/OurApp


The Xcode Deployment Target is 12.1.


Do I have something misconfigured or is this set of Beta builds not working?


Using the same Xcode, building and running the app on an iPad with iOS 12.1.1 runs fine.


Thanks.

Accepted Reply

I just updated my iPhone from 12.2 beta 2 to beta 3. This resolved the crash.

Replies

I have the same problem when I build to an iPhone (I've tried with an app that I develop, as well as a couple of apple demo apps: BreakfastFinder and MarsHabitatPricePredictor). There's no problem when I build to an iPhone simulator.


dyld: Symbol not found: _OBJC_CLASS_$__TtCs12_SwiftObject


xCode 10.2 beta 3 (10P99q)

macOS 10.14 (18A391)

iOS 12.2 beta 2 (16E5191d)

I just updated my iPhone from 12.2 beta 2 to beta 3. This resolved the crash.

Thanks, that resolved the crash for me, too!

Updating the iPad to iOS 12.2 Beta 3 (16E5201e) does resolve the problem.

Hi all,


I'm having a similar issue in my development process. I'm trying really hard to run an app that has loaded and run correctly previously. I haven't changed anything but let it sit for a few weeks, likely allowing software updates to get involved.


I'm running macOS 10.14.3 and iOS 12.2 on my iPhone 8 Plus. It doesn't matter if I run on either the newest XCode beta or the latest release.


When I attempt to run on XCode 10.1, the app doesn't run and I get an alert before anything can get going:


"Could not locate device support files.


This iPhone 8 Plus (Model A1864, A1897, A1898, A1899) is running iOS 12.2 (16E5181f), which may not be supported by this version of Xcode."


When I attempt to run on XCode 10.1 Beta 3, the software runs but display nothing on the iPhone before displaying:


"dyld: Symbol not found: _OBJC_CLASS_$__TtCs12_SwiftObject

Referenced from: /var/containers/Bundle/Application/62734D4B-ADA2-4DA1-B510-D54F24119F93/VirtualOrgan.app/VirtualOrgan

Expected in: /usr/lib/swift/libswiftCore.dylib

in /var/containers/Bundle/Application/62734D4B-ADA2-4DA1-B510-D54F24119F93/VirtualOrgan.app/VirtualOrgan

(lldb)"


Any help would be very much appreciated!


P.S. I previously had both my Mac and iPhone on the beta software program but when it initally started causing problems, I reverted both to the latest releases. I don't imagine that'd cause an issue but it seemed relevant enough given our talks of beta softwares.

thank you so much!


dyld: Symbol not found: _OBJC_CLASS_$__TtCs12_SwiftObject


resolved.

As much as I would love to accept this, it's not really a solution.