Xcode中的调试和发布运行对我来说运行正常,但是我一直在努力在我们的CI(bitrise)中解决这个问题.
我们使用Fastlane,我们的工作流程有步骤清除派生数据并执行干净构建.
clear_derived_databuild_ios_app( workspace: "application.xcworkspace",scheme: "application",clean: true)
然而,这些错误仍然存在(这些是很少的例子,大约有30个错误,像这样跟随彼此并指向像达尔文等相同的包…):
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/library/Frameworks/CoreFoundation.framework/headers/CoreFoundation.h:16:10: Could not build module 'Darwin'#include <sys/types.h> ^~~~~~~~❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/usr/include/dispatch/dispatch.h:25:10: Could not build module 'Darwin'#include <Availability.h> ~~~~~~~~^❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/library/Frameworks/Foundation.framework/headers/Foundation.h:6:10: Could not build module 'CoreFoundation'#include <CoreFoundation/CoreFoundation.h> ~~~~~~~~^❌ /Users/vagrant/git/packages/skimitar-app/node_modules/react-native-firebase/ios/RNFirebase/functions/RNFirebaseFunctions.h:3:9: Could not build module 'Foundation'#import <Foundation/Foundation.h> ~~~~~~~~^
编辑:legazy构建设置是否仍然存在,即如果在我们的Xcode中设置并提交给git,ci是否也会使用遗留构建系统?
@H_419_26@解决方法 >如果您正在使用Bitrise,请转到’Xcode Archive&导出为iOS’步骤. >向下滚动并展开“调试”部分.向下滚动到“在存档之前执行干净的Xcode构建吗?”并将其更改为“是”. >保存设置开始新的构建,不要重建,因为它将使用旧设置. 总结以上是内存溢出为你收集整理的ios – Xcode 10“无法构建模块Darwin / Foundation / CoreFoundation”等全部内容,希望文章能够帮你解决ios – Xcode 10“无法构建模块Darwin / Foundation / CoreFoundation”等所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)