首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >‘../Pods-Environment.h.h’文件未找到

‘../Pods-Environment.h.h’文件未找到
EN

Stack Overflow用户
提问于 2014-11-06 15:16:19
回答 1查看 626关注 0票数 1

找到原因,回答如下。

我刚刚克隆了一个远程的git存储库。它有一个包含2个项目的工作区。主菜和豆荚。

当我试图运行我的主要项目时,我遇到了一个错误。

“词汇或预处理问题:‘../Pods-Environment.h.h’文件未找到。

UI7Kit正在导入此文件,

代码语言:javascript
复制
//
//  UI7Kit.h
//  UI7Kit
//
//  Created by Jeong YunWon on 13. 6. 11..
//  Copyright (c) 2013 youknowone.org. All rights reserved.
//

/*!
 *      #import <UI7Kit/UI7Kit.h>
 *      [UI7Kit pssatchIfNeeded]; // in main.m, before UIApplicationMain()
 */


#ifdef    COCOAPODS
#include    "../Pods-environment.h"
#else // no cocoapods, so enable everything

我试着再吸一次,但没什么不同,知道怎么解决吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-11-17 16:34:51

所以,在一些失败之后,我发现了到底发生了什么。

我的项目过去有一个不同的UI7Kit.h文件。它甚至没有进口“./Pods-environment.h.h”。导致错误的-The文件。

每次我运行吊舱安装时,我都会覆盖修改过的文件。

如果有人需要更新的文件,则如下所示:

代码语言:javascript
复制
//
//  UI7Kit.h
//  UI7Kit
//
//  Created by Jeong YunWon on 13. 6. 11..
//  Copyright (c) 2013 youknowone.org. All rights reserved.
//

/*!
 *      #import <UI7Kit/UI7Kit.h>
 *      [UI7Kit patchIfNeeded]; // in main.m, before UIApplicationMain()
 */


#if __has_include(<UI7Kit/UI7Button.h>)
#define UI7KIT_HAS_QUARTZCORE
#endif
#if __has_include(<UI7Kit/UI7PickerView.h>)
#define UI7KIT_HAS_QUARTZCORE
#endif
#if __has_include(<UI7Kit/UI7SearchBar.h>)
#define UI7KIT_HAS_QUARTZCORE
#endif
#if __has_include(<UI7Kit/UI7SegmentedControl.h>)
#define UI7KIT_HAS_QUARTZCORE
#endif
#if __has_include(<UI7Kit/UI7Stepper.h>)
#define UI7KIT_HAS_QUARTZCORE
#endif
#if __has_include(<UI7Kit/UI7TextField.h>)
#define UI7KIT_HAS_QUARTZCORE
#endif

#ifdef UI7KIT_HAS_QUARTZCORE
#import <QuartzCore/QuartzCore.h>
#endif

// Core
#import <UI7Kit/UI7KitCore.h>
#import <UI7Kit/UI7Utilities.h>

#ifdef COCOAPODS

#if __has_include(<UI7Kit/UI7Font.h>)
#import <UI7Kit/UI7Font.h>
#endif

#if __has_include(<UI7Kit/UI7AlertView.h>)
#import <UI7Kit/UI7AlertView.h>
#endif

#if __has_include(<UI7Kit/UI7ActionSheet.h>)
#import <UI7Kit/UI7ActionSheet.h>
#endif

#if __has_include(<UI7Kit/UI7BarButtonItem.h>)
#import <UI7Kit/UI7BarButtonItem.h>
#endif

#if __has_include(<UI7Kit/UI7Button.h>)
#import <UI7Kit/UI7Button.h>
#endif

#if __has_include(<UI7Kit/UI7NavigationBar.h>)
#import <UI7Kit/UI7NavigationBar.h>
#endif

#if __has_include(<UI7Kit/UI7NavigationController.h>)
#import <UI7Kit/UI7NavigationController.h>
#endif

#if __has_include(<UI7Kit/UI7ProgressView.h>)
#import <UI7Kit/UI7ProgressView.h>
#endif

#if __has_include(<UI7Kit/UI7PickerView.h>)
#import <UI7Kit/UI7PickerView.h>
#endif

#if __has_include(<UI7Kit/UI7SearchBar.h>)
#import <UI7Kit/UI7SearchBar.h>
#endif

#if __has_include(<UI7Kit/UI7SegmentedControl.h>)
#import <UI7Kit/UI7SegmentedControl.h>
#endif

#if __has_include(<UI7Kit/UI7Slider.h>)
#import <UI7Kit/UI7Slider.h>
#endif

#if __has_include(<UI7Kit/UI7Stepper.h>)
#import <UI7Kit/UI7Stepper.h>
#endif

#if __has_include(<UI7Kit/UI7TabBar.h>)
#import <UI7Kit/UI7TabBar.h>
#endif

#if __has_include(<UI7Kit/UI7TabBarItem.h>)
#import <UI7Kit/UI7TabBarItem.h>
#endif

#if __has_include(<UI7Kit/UI7TabBarController.h>)
#import <UI7Kit/UI7TabBarController.h>
#endif

#if __has_include(<UI7Kit/UI7TableView.h>)
#import <UI7Kit/UI7TableView.h>
#endif

#if __has_include(<UI7Kit/UI7TextField.h>)
#import <UI7Kit/UI7TextField.h>
#endif

#if __has_include(<UI7Kit/UI7Toolbar.h>)
#import <UI7Kit/UI7Toolbar.h>
#endif

#if __has_include(<UI7Kit/UI7View.h>)
#import <UI7Kit/UI7View.h>
#endif

#if __has_include(<UI7Kit/UI7ViewController.h>)
#import <UI7Kit/UI7ViewController.h>
#endif

#if __has_include(<UIKitExtension/UIKitExtension.h>)
#import <UIKitExtension/UIKitExtension.h>
#endif

#else // no cocoapods, so enable everything

#import <UI7Kit/UI7Font.h>
#import <UI7Kit/UI7AlertView.h>
#import <UI7Kit/UI7ActionSheet.h>
#import <UI7Kit/UI7BarButtonItem.h>
#import <UI7Kit/UI7Button.h>
#import <UI7Kit/UI7NavigationBar.h>
#import <UI7Kit/UI7NavigationController.h>
#import <UI7Kit/UI7ProgressView.h>
#import <UI7Kit/UI7PickerView.h>
#import <UI7Kit/UI7SearchBar.h>
#import <UI7Kit/UI7SegmentedControl.h>
#import <UI7Kit/UI7Slider.h>
#import <UI7Kit/UI7Stepper.h>
#import <UI7Kit/UI7TabBar.h>
#import <UI7Kit/UI7TabBarItem.h>
#import <UI7Kit/UI7TabBarController.h>
#import <UI7Kit/UI7TableView.h>
#import <UI7Kit/UI7TextField.h>
#import <UI7Kit/UI7Toolbar.h>
#import <UI7Kit/UI7View.h>
#import <UI7Kit/UI7ViewController.h>
#import <UIKitExtension/UIKitExtension.h>

#endif // ifdef COCOAPODS

感谢“trojanfoe”和“Fogmeister”试图帮助我。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26782897

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档