11/28/2023 0 Comments Xcode 12.5 iosxcrun simctl list egrep '(Booted)' lists only all booted (could be more than one) Simulators (remove egrep '(Booted)' to see them all). When such subclass is present swiftc generates the correct Objective-C compatibility header and LibraryA compiles. As so often, there is a Xcode terminal tool for that (part of the Xcode tools) see xcrun manpage. To successfully compile with Xcode 12.5 one can create a subclass of UIView (LibraryB.swift:6) within LibraryB. Xcode 13.3 requires a Mac running macOS Monterey 12 or. LibraryA.m:2:9: fatal error: could not build module LibraryB Xcode 13.3 includes SDKs for iOS 15.4, iPadOS 15.4, tvOS 15.4, watchOS 8.5, and macOS Monterey 12.3. While building module 'LibraryB' imported from LibraryA.m:2:īuild/amework/Headers/LibraryB-Swift.h:213:4: error: expected a type The expected behavior is that clang successfully compiles library LibraryA however, since Xcode 12.5 clang fails with the following error:.public class FixMe: UIView public class Foo: NSObject public func bar() -> CGFloat /Platforms/atform/Developer/SDKs/iPhoneSimulator.sdk -target x86_64-apple-ios11.0-simulator -fmodules -F build/ Xcode 14.3 includes the SDKs for iOS 16.4, iPadOS 16.4, tvOS 16.4. Uncommenting the following line makes Xcode 12.5 toolchain export CoreGraphics as expected For those unfamiliar, Xcode is the tool that developers use to create apps for Apple platforms such as iOS, macOS, and watchOS. Create the following files or clone the reproduction repository:.It seems that since Xcode 12.5 the swiftc compiler generates an incorrect Objective-C compatibility header under some circumstances. Xcode 12.5 Upgrading to the latest Xcode version gives developers access to the corresponding SDKs for iOS, macOS, watchOS, and tvOS. We recently switched from Xcode 12.4 to Xcode 12.5 and encountered an interesting issue when compiling for iOS simulator.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |