【问题标题】:No such module in swift but the framework is thereswift中没有这样的模块,但框架在那里
【发布时间】:2016-02-02 17:40:07
【问题描述】:

我想在点击后展开图像,所以我使用 pod 来安装它,但之后它不起作用,我得到了这个错误

AKImageViewerViewController.h 中没有这样的模块

    import UIKit
    import AKImageViewerViewController.h
class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        var aKImageViewerViewController: AKImageViewerController = AKImageViewerViewController()
        aKImageViewerViewController.image = UIImage.imageName("lion.png")
        aKImageViewerViewController.imgCancel = UIImage.imageNamed("btn_cancel.png")
        self.view.addSubview(aKImageViewerViewController.view)
        aKImageViewerViewController.centerPictureFromPoint(CGPointMake(0, 0), ofSize: CGSizeMake(30, 30), withCornerRadius: 1.0)
    }

标题

#import "AKImageViewerViewController.h"

我确实检查了构建设置并更新了它,但没有用 我上传了项目https://www.dropbox.com/s/cjk38qh8lf58rkg/imageFU.zip?dl=0

【问题讨论】:

    标签: ios swift imageview cocoapods


    【解决方案1】:

    试试

    如果框架放置在您的项目目录中,只需将框架搜索路径设置为$(SRCROOT) 并将其设置为递归即可。

    不在import AKImageViewerViewController.h,是import AKImageViewerViewController

    【讨论】:

    • 旧错误消失了,但我得到了新错误 :0: error: bridging header '/Users/**/Desktop/imageFU' 不存在
    • 看到这个链接可能对你有帮助stackoverflow.com/questions/26096402/…
    • @marrioa -- 你的问题需要额外的帮助吗
    猜你喜欢
    • 2018-01-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-08-01
    • 1970-01-01
    • 2017-10-15
    • 2016-11-04
    • 1970-01-01
    相关资源
    最近更新 更多