Skip to content

react-native0.62中报错,不能使用,求解决 #40

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

Closed
liubi520 opened this issue Apr 14, 2020 · 5 comments
Closed

react-native0.62中报错,不能使用,求解决 #40

liubi520 opened this issue Apr 14, 2020 · 5 comments

Comments

@liubi520
Copy link

image

@liubi520
Copy link
Author

在react-native 0.62中包报错错误信息如下:
eact-native-netease-im/ios/RNNeteaseIm/RNNeteaseIm/PrefixHeader.pch:10:9: 'NIMSDK/NIMSDK.h' file not found

/ios/Pods/Headers/Public/Flipper-Folly/folly/string.h:20:10: 'cstdarg' file not found

Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:10: Could not build module 'Darwin'

Developer/SDKs/iPhoneOS13.2.sdk/usr/include/dispatch/dispatch.h:25:10: Could not build module 'Darwin'

Developer/SDKs/iPhoneOS13.2.sdk/usr/include/os/object.h:25:10: Could not build module 'Darwin'

SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: Could not build module 'CoreFoundation'

Developer/SDKs/iPhoneOS13.2.sdk/usr/include/objc/objc.h:31:10: Could not build module 'Darwin'

/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/Security.framework/Headers/SecBase.h:27:10: Could not build module 'Darwin'

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/CoreServices.framework/Headers/UTCoreTypes.h:19:10: Could not build module 'CoreFoundation'

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:9: Could not build module 'Foundation'

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h:8:10: Could not build module 'Darwin'

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CABase.h:11:10: Could not build module 'Darwin'

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/EAGL.h:8:10: Could not build module 'Foundation'

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLDefines.h:8:9: Could not build module 'Darwin'

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceBase.h:12:10: Could not build module 'Darwin'

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImageDefines.h:10:10: Could not build module 'Darwin'

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CoreVideo.h:16:10: Could not build module 'Darwin'

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/ImageIO.framework/Headers/ImageIOBase.h:11:10: Could not build module 'Darwin'

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTDefines.h:12:10: Could not build module 'Darwin'

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/FileProvider.framework/Headers/NSFileProviderDomain.h:8:9: Could not build module 'Foundation'

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/NSString+UserNotifications.h:8:9: Could not build module 'Foundation'

@liubi520 liubi520 reopened this Apr 14, 2020
@ma6566966
Copy link

解决了吗?我也遇到一样的问题

@liubi520
Copy link
Author

liubi520 commented May 18, 2020 via email

@hzlgit hzlgit closed this as completed in 7038b27 Sep 16, 2020
@noway
Copy link

noway commented Sep 1, 2021

I'm experiencing the same issue, any workaround?

@noway
Copy link

noway commented Sep 2, 2021

I fixed it by searching for HEADER_SEARCH_PATHS in Buld Settings and then deleting all the custom overrides I had for that setting.

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

3 participants