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

can not upload new update of my app on xcode 16 received error contain bicode #1536

Closed
Mohamedzaky252 opened this issue Oct 12, 2024 · 2 comments

Comments

@Mohamedzaky252
Copy link

0

Asset validation failed

Invalid Executable. The executable 'Runner.app/Frameworks/FBAEMKit.framework/FBAEMKit' contains bitcode. (ID: 5c806ec7-2b8f-4ba7-a798-7a465a9aec8c)

Asset validation failed

Invalid Executable. The executable 'Runner.app/Frameworks/FBSDKCoreKit.framework/FBSDKCoreKit' contains bitcode. (ID: 793d6c5b-96d8-4870-a21a-f8e0c5321f4e)

Asset validation failed

Invalid Executable. The executable 'Runner.app/Frameworks/FBSDKCoreKit_Basics.framework/FBSDKCoreKit_Basics' contains bitcode. (ID: ef59c9a9-027d-438b-b49b-e93021e52c36)

Asset validation failed

Invalid Executable. The executable 'Runner.app/Frameworks/FBSDKLoginKit.framework/FBSDKLoginKit' contains bitcode. (ID: 56b3fd70-9d6c-433f-8687-fc4f02398072)

received this error after archive app and upload it to apple
Screenshot 1446-04-09 at 11 50 04 PM

@Mohamedzaky252 Mohamedzaky252 added the bug Something isn't working label Oct 12, 2024
@Mohamedzaky252
Copy link
Author

this is my podfile

Uncomment this line to define a global platform for your project

platform :ios, '14.0'

CocoaPods analytics sends network stats synchronously affecting flutter build latency.

ENV['COCOAPODS_DISABLE_STATS'] = 'true'

project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}

def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), FILE)
unless File.exist?(generated_xcode_build_settings_path)
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end

File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT=(.*)/)
return matches[1].strip if matches
end
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end

require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

flutter_ios_podfile_setup

target 'Runner' do
use_frameworks!
use_modular_headers!

Override Firebase SDK Version

$FirebaseSDKVersion = '10.22.0'

flutter_install_all_ios_pods File.dirname(File.realpath(FILE))
end

post_install do |installer|
installer.generated_projects.each do |project|
project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0'
config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'NO'
end
end
end
installer.pods_project.build_configuration_list.build_configurations.each do |configuration|
configuration.build_settings['CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES'] = 'YES'
end
installer.pods_project.targets.each do |target|
if target.name == 'BoringSSL-GRPC'
target.source_build_phase.files.each do |file|
if file.settings && file.settings['COMPILER_FLAGS']
flags = file.settings['COMPILER_FLAGS'].split
flags.reject! { |flag| flag == '-GCC_WARN_INHIBIT_ALL_WARNINGS' }
file.settings['COMPILER_FLAGS'] = flags.join(' ')
end
end
end
end
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)

target.build_configurations.each do |config|
  # You can remove unused permissions here
  # for more information: https://github.com/BaseflowIT/flutter-permission-handler/blob/master/permission_handler/ios/Classes/PermissionHandlerEnums.h
  # e.g. when you don't need camera permission, just add 'PERMISSION_CAMERA=0'
  config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
    '$(inherited)',

    ## dart: PermissionGroup.camera
    'PERMISSION_CAMERA=1',

    ## dart: PermissionGroup.microphone
    'PERMISSION_MICROPHONE=1',

    ## dart: PermissionGroup.photos
    'PERMISSION_PHOTOS=1',

    ## The 'PERMISSION_LOCATION' macro enables the `locationWhenInUse` and `locationAlways` permission. If
    ## the application only requires `locationWhenInUse`, only specify the `PERMISSION_LOCATION_WHENINUSE`
    ## macro.
    ##
    ## dart: [PermissionGroup.location, PermissionGroup.locationAlways, PermissionGroup.locationWhenInUse]
    'PERMISSION_LOCATION=1',

    ## dart: PermissionGroup.notification
    'PERMISSION_NOTIFICATIONS=1',

  ]

end

end
end

@tmikov
Copy link
Contributor

tmikov commented Oct 12, 2024

Hi! I am sorry, closing because this doesn't seem related to Hermes.

@tmikov tmikov closed this as completed Oct 12, 2024
@tmikov tmikov removed the bug Something isn't working label Oct 12, 2024
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