mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: sometimes build error in macOS x86_64 (#2234)
This commit is contained in:
parent
662d11b3b1
commit
ce4e4f2276
@ -27,18 +27,18 @@ require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelpe
|
||||
flutter_macos_podfile_setup
|
||||
|
||||
def build_specify_archs_only
|
||||
if ENV.has_key?('BUILD_ARCHS')
|
||||
xcodeproj_path = File.dirname(__FILE__) + '/Runner.xcodeproj'
|
||||
project = Xcodeproj::Project.open(xcodeproj_path)
|
||||
project.targets.each do |target|
|
||||
if target.name == 'Runner'
|
||||
target.build_configurations.each do |config|
|
||||
config.build_settings['ARCHS'] = ENV['BUILD_ARCHS']
|
||||
end
|
||||
end
|
||||
end
|
||||
project.save()
|
||||
end
|
||||
# if ENV.has_key?('BUILD_ARCHS')
|
||||
# xcodeproj_path = File.dirname(__FILE__) + '/Runner.xcodeproj'
|
||||
# project = Xcodeproj::Project.open(xcodeproj_path)
|
||||
# project.targets.each do |target|
|
||||
# if target.name == 'Runner'
|
||||
# target.build_configurations.each do |config|
|
||||
# config.build_settings['ARCHS'] = ENV['BUILD_ARCHS']
|
||||
# end
|
||||
# end
|
||||
# end
|
||||
# project.save()
|
||||
# end
|
||||
end
|
||||
|
||||
build_specify_archs_only()
|
||||
|
@ -417,7 +417,7 @@
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
|
||||
buildSettings = {
|
||||
ARCHS = arm64;
|
||||
ARCHS = "$(ARCHS_STANDARD)";
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements;
|
||||
@ -551,7 +551,7 @@
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
|
||||
buildSettings = {
|
||||
ARCHS = arm64;
|
||||
ARCHS = "$(ARCHS_STANDARD)";
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements;
|
||||
@ -576,7 +576,7 @@
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
|
||||
buildSettings = {
|
||||
ARCHS = arm64;
|
||||
ARCHS = "$(ARCHS_STANDARD)";
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements;
|
||||
|
Loading…
Reference in New Issue
Block a user