IOS app crashed when I tried quick map link with objective project c
I am having a problematic application when I am trying to link a responsive framework to an object project c
dyld: Library not loaded: @rpath/libswiftCoreImage.dylib
Referenced from: /Users/arcilite/Library/Developer/Xcode/DerivedData/SamplesAdaptiveController-fpznutybiarsvsbwskrhgwflbcdo/Build/Products/Debug-iphonesimulator/AdaptiveController.framework/AdaptiveController
Do you have any ideas? Can I use swift structure in object-c code? thank
PS Xcode 6.0. Training apparatus
source to share
I ran into a similar issue when trying to call a function from a pure Swift environment in an existing Objective C app. I was using XCode 6.1 and an iOS 7.1.2 device and tried all other stack overflow guidelines.
Create a dummy Swift file in your Objective-C project (if you don't already have a Swift file in your project). In this Swift file, just add this line to import UIKit:
import UIKit
It's like forcing Xcode to package the required Swift libraries into the app and stop it from crashing.
source to share
This can happen if you are using a library but not using Swift elsewhere in your code. Try setting Embedded Content Contains Swift Code
to YES
in your project build settings. From Apple:
When building an app that does not contain Swift source files, but includes other content (such as frameworks, XPC services, app extensions, etc.) that contain Swift code, you must set a build parameter. The attached content contains Swift Code (EMBEDDED_CONTENT_CONTAINS_SWIFT). This way the Swift libraries will be included in the application.
Hope this helps!
source to share