桥接头不存在

时间:2016-07-01 18:38:10

标签: objective-c swift

我正在尝试在Swift中使用Objective C中编写的AKPickerView pod,但我不断收到此错误  Bridging header' /Users/bogdanbarbulescu/Desktop/Inapk/Inapk/Pods-Inapk-umbrella.h'不存在 。

我做了以下设置:     1.在“构建设置”下     定义模块是

  @echo off

REM Variables
rem dir1 is the source directory
set dir1=C:\Users\%username%\Desktop\Dir1\
rem dir2 is the target directory
set dir2=C:\Users\%username%\Desktop\Dir2\
rem file is the name of the source file and desired name of the target file
set file=file.txt
rem pre1 is the name of the copy of the old target file before it is overwritten
set pre1=push backup
rem pre2 is the name of prefix for a temporary file created in the target directory
set pre2=temp

REM if source file exist
if exist %dir1%%file% (
    rem if there is a file named the same in target directory
    if exist %dir2%%file% (
        rem if there is allready a backup file
        if exist %dir2%%pre1%%file% (
            rem rename the backup file as a temp file
            rename %dir2%%pre1%%file% %dir2%%pre2%%file%
            rem rename the old file as backup file
            rename %dir2%%file% %dir2%%pre1%%file%

            rem move source file to target directory
            move %dir1%%file% %dir2%

            rem if rename failed
            if not exist %dir2%%file% (
                rem rename the backup to the normal file
                rename %dir2%%pre1%%file% %file%
                rem rename the temp file to the backup file
                rename %dir2%%pre2%%file% %pre1%%file%
                rem echo error
                echo rename error
                pause
            rem Delete temp file
            ) else ( del %dir2%%pre2%%file% )
        )
    ) ELSE ( move %dir1%%file% %dir2% )
) ELSE ( echo %file% does not exist in directory "%dir1%" )
pause

如果你知道如何解决这个问题,请告诉我。感谢

1 个答案:

答案 0 :(得分:0)

我建议您执行以下操作。 而不是在pod中放置一些内容,在项目组中创建一个桥接头。

我找到的最简单的方法是简单地创建一个新的cocoaTouch类,右键单击您的项目并选择新文件。 new class

并选择objective-c作为语言。

这将询问您是否允许创建桥接头文件。 在那里,导入你想要使用的模块#import" AKPickerView.h"