我已将Image Editor集成到我的项目中,并且已成功构建。但是当它运行时它会崩溃。显示这个
dyld:未加载库:@ rpath / AdobeCreativeSDKImage.framework / AdobeCreativeSDKImage 参考自:/Users/macbookpro/Library/Developer/CoreSimulator/Devices/E3EC72D7-165A-405E-A7FC-A34D34228382/data/Containers/Bundle/Application/EDFA9A33-98A2-408C-956B-900F6A81C295/AdobeCreativeSDKTest.app/AdobeCreativeSDKTest 原因:未找到图像
相关代码:
override func viewDidLoad() {
super.viewDidLoad()
AdobeUXAuthManager.shared().setAuthenticationParametersWithClientID
(kClientSecret, withClientSecret: kClientSecret)
AdobeUXAuthManager.shared().redirectURL = NSURL(string: "ams+aa772fb03651ca3b93a7fa9b3272714cc78764bb://adobeid/19c3c4f08d9e4cfeb5d802e30a2d2a64")! as URL!
image = imageView.image
self.photoEditorStart(image:image)
}
func photoEditorStart(image: UIImage!) {
DispatchQueue.main.async {
AdobeImageEditorCustomization.setToolOrder([
kAdobeImageEditorEnhance, /* Enhance */
kAdobeImageEditorEffects, /* Effects */
kAdobeImageEditorStickers, /* Stickers */
kAdobeImageEditorOrientation, /* Orientation */
kAdobeImageEditorCrop, /* Crop */
kAdobeImageEditorColorAdjust, /* Color */
kAdobeImageEditorLightingAdjust, /* Lighting */
kAdobeImageEditorSharpness, /* Sharpness */
kAdobeImageEditorDraw, /* Draw */
kAdobeImageEditorText, /* Text */
kAdobeImageEditorRedeye, /* Redeye */
kAdobeImageEditorWhiten, /* Whiten */
kAdobeImageEditorBlemish, /* Blemish */
kAdobeImageEditorBlur, /* Blur */
kAdobeImageEditorMeme, /* Meme */
kAdobeImageEditorFrames, /* Frames */
kAdobeImageEditorFocus, /* TiltShift */
kAdobeImageEditorSplash, /* ColorSplash */
kAdobeImageEditorOverlay, /* Overlay */
kAdobeImageEditorVignette /* Vignette */
])
let adobeViewCtr = AdobeUXImageEditorViewController(image: image)
adobeViewCtr.delegate = self
self.present(adobeViewCtr, animated: true) { () -> Void in
}
}
}
func photoEditor(_ editor: AdobeUXImageEditorViewController, finishedWith image: UIImage?)
{
}
func photoEditorCanceled(_ editor: AdobeUXImageEditorViewController)
{
}
AdobeUXImageEditorViewControllerDelegate用作委托。
了解更多信息:
可能的原因是什么?
答案 0 :(得分:1)
请将您的AdobeCreativeSDKCore.framework和AdobeCreativeSDKImage.framework两个框架添加到目标 - >你的项目 - >一般 - >嵌入式二进制文件。希望它可以帮到你