Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

导入头文件,有些时候找不到文件,怎么处理? #236

Open
295060456 opened this issue May 2, 2024 · 1 comment
Open

Comments

@295060456
Copy link

#if __has_include(<TABAnimated/TABAnimated.h>)
#import <TABAnimated/TABAnimated.h>
#else
#import "TABAnimated.h"
#endif

代码这样写的话,在真机运行不报错,模拟器报错。怎么解决?

image
image

@tigerAndBull
Copy link
Owner

#if __has_include(<TABAnimated/TABAnimated.h>) #import <TABAnimated/TABAnimated.h> #else #import "TABAnimated.h" #endif

代码这样写的话,在真机运行不报错,模拟器报错。怎么解决?

image image

检查下工程配置 Header Search Paths

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants