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

yarn ios 报错 #92

Open
SummerHenry opened this issue Dec 1, 2022 · 5 comments
Open

yarn ios 报错 #92

SummerHenry opened this issue Dec 1, 2022 · 5 comments

Comments

@SummerHenry
Copy link

yarn ios的时候报错
pod install
安装的aliyun-oss-react-native (1.0.0-alpha.7) 和 AliyunOSSiOS (2.10.16)

ios/Pods/Headers/Private/AliyunOSSiOS/OSSCompat.h:18:12: error: cannot find interface declaration for 'OSSClient'
@interface OSSClient (Compat)

The following build commands failed:
CompileC xxxx/Library/Developer/Xcode/DerivedData/xxx/Objects-normal/x86_64/RNAliyunOSS+OBJECT.o xxx/node_modules/aliyun-oss-react-native/ios/RNAliyunOSS+OBJECT.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'aliyun-oss-react-native' from project 'Pods')

@simasesa
Copy link

simasesa commented Dec 4, 2022

i have same issue...

1 similar comment
@jiangsongh
Copy link

i have same issue...

@zxxTiny
Copy link

zxxTiny commented Dec 20, 2022

i have the same issue. React-native 0.70.6

@zxxTiny
Copy link

zxxTiny commented Dec 20, 2022

i fixed it.
find the error file "OSSCompat.h". add import: #import "OSSClient.h" .

image

flyskywhy added a commit to flyskywhy/react-native-alioss that referenced this issue Apr 26, 2023
@forthenature
Copy link

This problem is caused by the order of the header files in OSSService.h.

Just move this headers to the bottom and it will be resolved.

#import "OSSGetObjectTaggingRequest.h"
#import "OSSGetObjectTaggingResult.h"
#import "OSSPutObjectTaggingRequest.h"
#import "OSSPutObjectTaggingResult.h"
#import "OSSDeleteObjectTaggingRequest.h"
#import "OSSDeleteObjectTaggingResult.h"

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

5 participants