ios中的SWRevealViewController给出桥接头错误

时间:2017-02-13 06:18:58

标签: ios swift swrevealviewcontroller

我在ios中使用SWRevealViewController的项目工作正常,但是当我将它复制到新位置时,它显示了revealviewcontroller文件缺失错误。我删除了文件.m文件和.h文件。然后我再次添加了两个文件并添加了头文件,但我仍然收到以下错误:

Showing Recent Issues
Bridging header '/Users/rajvirsingh/Desktop/drive/ios projects/ios dec 2016/ePunjabStaffLogin/ePunjabStaffLogin/ePunjabStaffLogin-Bridging-Header.h' does not exist


Showing Recent Issues
CompileSwift normal i386 /Users/rajvirsingh/Desktop/drive/ios projects/ios dec 2016/ePunjabStaffLogin/ePunjabStaffLogin/HeaderTableViewCell.swift
    cd /Users/rajvirsingh/Desktop/drive/ios projects/ios dec 2016/ePunjabStaffLogin
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c "/Users/rajvirsingh/Desktop/drive/ios projects/ios dec 2016/ePunjabStaffLogin/ePunjabStaffLogin/ViewGrievancesViewController.swift" "/Users/rajvirsingh/Desktop/drive/ios projects/ios dec 2016/ePunjabStaffLogin/ePunjabStaffLogin/LeaveChild.swift" -primary-file "/Users/rajvirsingh/Desktop/drive/ios projects/ios dec 2016/ePunjabStaffLogin/ePunjabStaffLogin/HeaderTableViewCell.swift" "/Users/rajvirsingh/Desktop/drive/ios projects/ios dec 2016/ePunjabStaffLogin/ePunjabStaffLogin/ChildGrievanceTableViewCell.swift" "/Users/rajvirsingh/Desktop/drive/ios projects/ios dec 2016/ePunjabStaffLogin/ePunjabStaffLogin/HedaerCellTableViewCell.swift" "/Users/rajvirsingh/Desktop/drive/ios projects/ios dec 2016/ePunjabStaffLogin/ePunjabStaffLogin/Promotions.swift" "/Users/rajvirsingh/Desktop/drive/ios projects/ios dec 2016/ePunjabStaffLogin/ePunjabStaffLogin/PromotionsViewController.swift" "/Users/rajvirsingh/Desktop/drive/ios projects/ios dec 2016/ePunjabStaffLogin/ePunjabStaffLogin/MdmShowViewController.swift" "/Users/rajvirsingh/Desktop/drive/ios projects/ios dec 2016/ePunjabStaffLogin/ePunjabStaffLogin/ViewLeavesViewController.swift" "/Users/rajvirsingh/Desktop/drive/ios projects/ios dec 2016/ePunjabStaffLogin/ePunjabStaffLogin/PromotionsTableViewCell.swift" "/Users/rajvirsingh/Desktop/drive/ios projects/ios dec 2016/ePunjabStaffLogin/ePunjabStaffLogin/Constants.swift" "/Users/rajvirsingh/Desktop/drive/ios projects/ios dec 2016/ePunjabStaffLogin/ePunjabStaffLogin/MdmReportViewController.swift" "/Users/rajvirsingh/Desktop/drive/ios projects/ios dec 2016/ePunjabStaffLogin/ePunjabStaffLogin/LoginViewController.swift" "/Users/rajvirsingh/Desktop/drive/ios projects/ios dec 2016/ePunjabStaffLogin/ePunjabStaffLogin/ShowMdmRowTableViewCell.swift" "/Users/rajvirsingh/Desktop/drive/ios projects/ios dec 2016/ePunjabStaffLogin/ePunjabStaffLogin/UpdateViewController.swift" "/Users/rajvirsingh/Desktop/drive/ios projects/ios dec 2016/ePunjabStaffLogin/ePunjabStaffLogin/StringExtension.swift" "/Users/rajvirsingh/Desktop/drive/ios projects/ios dec 2016/ePunjabStaffLogin/ePunjabStaffLogin/SpecialLeaveViewController.swift" "/Users/rajvirsingh/Desktop/drive/ios projects/ios dec 2016/ePunjabStaffLogin/ePunjabStaffLogin/ChildTableViewCell.swift" "/Users/rajvirsingh/Desktop/drive/ios projects/ios dec 2016/ePunjabStaffLogin/ePunjabStaffLogin/ViewAttendanceViewController.swift" "/Users/rajvirsingh/Desktop/drive/ios projects/ios dec 2016/ePunjabStaffLogin/ePunjabStaffLogin/MenuViewController.swift" "/Users/rajvirsingh/Desktop/drive/ios projects/ios dec 2016/ePunjabStaffLogin/ePunjabStaffLogin/promotionsHeadTableViewCell.swift" "/Users/rajvirsingh/Desktop/drive/ios projects/ios dec 2016/ePunjabStaffLogin/ePunjabStaffLogin/MenuHomeViewController.swift" "/Users/rajvirsingh/Desktop/drive/ios projects/ios dec 2016/ePunjabStaffLogin/ePunjabStaffLogin/AppDelegate.swift" "/Users/rajvirsingh/Desktop/drive/ios projects/ios dec 2016/ePunjabStaffLogin/ePunjabStaffLogin/Mdm.swift" "/Users/rajvirsingh/Desktop/drive/ios projects/ios dec 2016/ePunjabStaffLogin/ePunjabStaffLogin/LoggedInViewController.swift" "/Users/rajvirsingh/Desktop/drive/ios projects/ios dec 2016/ePunjabStaffLogin/ePunjabStaffLogin/GrievanceChild.swift" "/Users/rajvirsingh/Desktop/drive/ios projects/ios dec 2016/ePunjabStaffLogin/ePunjabStaffLogin/RoutineLeaveViewController.swift" "/Users/rajvirsingh/Desktop/drive/ios projects/ios dec 2016/ePunjabStaffLogin/ePunjabStaffLogin/PersonalProfileViewController.swift" "/Users/rajvirsingh/Desktop/drive/ios projects/ios dec 2016/ePunjabStaffLogin/ePunjabStaffLogin/DataDiscrepancyViewController.swift" "/Users/rajvirsingh/Desktop/drive/ios projects/ios dec 2016/ePunjabStaffLogin/ePunjabStaffLogin/PromotionsChild.swift" "/Users/rajvirsingh/Desktop/drive/ios projects/ios dec 2016/ePunjabStaffLogin/ePunjabStaffLogin/HeadTableViewCell.swift" "/Users/rajvirsingh/Desktop/drive/ios projects/ios dec 2016/ePunjabStaffLogin/ePunjabStaffLogin/HeadGrievanceTableViewCell.swift" "/Users/rajvirsingh/Desktop/drive/ios projects/ios dec 2016/ePunjabStaffLogin/ePunjabStaffLogin/jobProfileViewController.swift" "/Users/rajvirsingh/Desktop/drive/ios projects/ios dec 2016/ePunjabStaffLogin/ePunjabStaffLogin/ApplyGrievanceViewController.swift" -target i386-apple-ios10.1 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.1.sdk -I /Users/rajvirsingh/Library/Developer/Xcode/DerivedData/ePunjabStaffLogin-auseensntkpseucxkidususztofq/Build/Products/Debug-iphonesimulator -F /Users/rajvirsingh/Library/Developer/Xcode/DerivedData/ePunjabStaffLogin-auseensntkpseucxkidususztofq/Build/Products/Debug-iphonesimulator -F /Users/rajvirsingh/Library/Developer/Xcode/DerivedData/ePunjabStaffLogin-auseensntkpseucxkidususztofq/Build/Products/Debug-iphonesimulator/Alamofire -F /Users/rajvirsingh/Library/Developer/Xcode/DerivedData/ePunjabStaffLogin-auseensntkpseucxkidususztofq/Build/Products/Debug-iphonesimulator/MBProgressHUD -F /Users/rajvirsingh/Library/Developer/Xcode/DerivedData/ePunjabStaffLogin-auseensntkpseucxkidususztofq/Build/Products/Debug-iphonesimulator/SwiftyJSON -F /Users/rajvirsingh/Library/Developer/Xcode/DerivedData/ePunjabStaffLogin-auseensntkpseucxkidususztofq/Build/Products/Debug-iphonesimulator/Toast-Swift -enable-testing -g -import-objc-header "/Users/rajvirsingh/Desktop/drive/ios projects/ios dec 2016/ePunjabStaffLogin/ePunjabStaffLogin/ePunjabStaffLogin-Bridging-Header.h" -module-cache-path /Users/rajvirsingh/Library/Developer/Xcode/DerivedData/ModuleCache -D DEBUG -D COCOAPODS -serialize-debugging-options -Xcc -I/Users/rajvirsingh/Library/Developer/Xcode/DerivedData/ePunjabStaffLogin-auseensntkpseucxkidususztofq/Build/Intermediates/ePunjabStaffLogin.build/Debug-iphonesimulator/ePunjabStaffLogin.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/rajvirsingh/Library/Developer/Xcode/DerivedData/ePunjabStaffLogin-auseensntkpseucxkidususztofq/Build/Intermediates/ePunjabStaffLogin.build/Debug-iphonesimulator/ePunjabStaffLogin.build/ePunjabStaffLogin-generated-files.hmap -Xcc -I/Users/rajvirsingh/Library/Developer/Xcode/DerivedData/ePunjabStaffLogin-auseensntkpseucxkidususztofq/Build/Intermediates/ePunjabStaffLogin.build/Debug-iphonesimulator/ePunjabStaffLogin.build/ePunjabStaffLogin-own-target-headers.hmap -Xcc -I/Users/rajvirsingh/Library/Developer/Xcode/DerivedData/ePunjabStaffLogin-auseensntkpseucxkidususztofq/Build/Intermediates/ePunjabStaffLogin.build/Debug-iphonesimulator/ePunjabStaffLogin.build/ePunjabStaffLogin-all-target-headers.hmap -Xcc -iquote -Xcc /Users/rajvirsingh/Library/Developer/Xcode/DerivedData/ePunjabStaffLogin-auseensntkpseucxkidususztofq/Build/Intermediates/ePunjabStaffLogin.build/Debug-iphonesimulator/ePunjabStaffLogin.build/ePunjabStaffLogin-project-headers.hmap -Xcc -I/Users/rajvirsingh/Library/Developer/Xcode/DerivedData/ePunjabStaffLogin-auseensntkpseucxkidususztofq/Build/Products/Debug-iphonesimulator/include -Xcc -I/Users/rajvirsingh/Library/Developer/Xcode/DerivedData/ePunjabStaffLogin-auseensntkpseucxkidususztofq/Build/Intermediates/ePunjabStaffLogin.build/Debug-iphonesimulator/ePunjabStaffLogin.build/DerivedSources/i386 -Xcc -I/Users/rajvirsingh/Library/Developer/Xcode/DerivedData/ePunjabStaffLogin-auseensntkpseucxkidususztofq/Build/Intermediates/ePunjabStaffLogin.build/Debug-iphonesimulator/ePunjabStaffLogin.build/DerivedSources -Xcc -DDEBUG=1 -Xcc -DCOCOAPODS=1 -Xcc "-working-directory/Users/rajvirsingh/Desktop/drive/ios projects/ios dec 2016/ePunjabStaffLogin" -emit-module-doc-path /Users/rajvirsingh/Library/Developer/Xcode/DerivedData/ePunjabStaffLogin-auseensntkpseucxkidususztofq/Build/Intermediates/ePunjabStaffLogin.build/Debug-iphonesimulator/ePunjabStaffLogin.build/Objects-normal/i386/HeaderTableViewCell~partial.swiftdoc -Onone -module-name ePunjabStaffLogin -emit-module-path /Users/rajvirsingh/Library/Developer/Xcode/DerivedData/ePunjabStaffLogin-auseensntkpseucxkidususztofq/Build/Intermediates/ePunjabStaffLogin.build/Debug-iphonesimulator/ePunjabStaffLogin.build/Objects-normal/i386/HeaderTableViewCell~partial.swiftmodule -serialize-diagnostics-path /Users/rajvirsingh/Library/Developer/Xcode/DerivedData/ePunjabStaffLogin-auseensntkpseucxkidususztofq/Build/Intermediates/ePunjabStaffLogin.build/Debug-iphonesimulator/ePunjabStaffLogin.build/Objects-normal/i386/HeaderTableViewCell.dia -emit-dependencies-path /Users/rajvirsingh/Library/Developer/Xcode/DerivedData/ePunjabStaffLogin-auseensntkpseucxkidususztofq/Build/Intermediates/ePunjabStaffLogin.build/Debug-iphonesimulator/ePunjabStaffLogin.build/Objects-normal/i386/HeaderTableViewCell.d -emit-reference-dependencies-path /Users/rajvirsingh/Library/Developer/Xcode/DerivedData/ePunjabStaffLogin-auseensntkpseucxkidususztofq/Build/Intermediates/ePunjabStaffLogin.build/Debug-iphonesimulator/ePunjabStaffLogin.build/Objects-normal/i386/HeaderTableViewCell.swiftdeps -o /Users/rajvirsingh/Library/Developer/Xcode/DerivedData/ePunjabStaffLogin-auseensntkpseucxkidususztofq/Build/Intermediates/ePunjabStaffLogin.build/Debug-iphonesimulator/ePunjabStaffLogin.build/Objects-normal/i386/HeaderTableViewCell.o

<unknown>:0: error: bridging header '/Users/rajvirsingh/Desktop/drive/ios projects/ios dec 2016/ePunjabStaffLogin/ePunjabStaffLogin/ePunjabStaffLogin-Bridging-Header.h' does not exist

1 个答案:

答案 0 :(得分:0)

您的ePunjabStaffLogin-Bridging-Header.h&#34;缺少桥接标题路径&#34;。请检查并在构建设置中休息路径..在“Swift编译器代码生成”中 - &gt; Objective-C桥接标题 - “重置桥接头文件的路径”