Hi,
I followed some online guides to import an objective-c framework into a SwiftUI app but did not work correctly. I am using Xcode 13.4. Here are the problems and my questions:
- The objective-c framework (Cronet from Chromium) has multiple versions:
Debug-iphonesimulator
Debug-iphoneos
Release-iphoneos
But in Xcode, the SwiftUI app only has one target, i.e. no different targets for Debug or Release, or iPhone device vs. Simulator.
Which version of the objective-c framework should I import for the SwiftUI app target?
- I tried to import the version of "Debug-iphonesimulator" into SwiftUI app. The import seems to be OK, i.e. it shows under "Frameworks", but if I click the framework name, there are no header files listing. (see attached screenshots).
Is there supposed to be a list of header files from the framework after importing? How can I use the framework if no header files available in the project?
Thanks.