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

Asset validation failed (90482) Invalid Executable. The executable 'appName.app/Frameworks/Razorpay.framework/Razorpay' contains bitcode. (ID: 908f4715-6cac-48b9-989e-e3ca18700aa6) in xcode swift on upload on appstore #217

Open
omdosma opened this issue Oct 21, 2024 · 6 comments

Comments

@omdosma
Copy link

omdosma commented Oct 21, 2024

No description provided.

@omdosma
Copy link
Author

omdosma commented Oct 21, 2024

when I distribute then these essue comes ,

@vivekshindhe
Copy link
Contributor

@omdosma
Can you please run this command in your terminal {from rootPrject folder} and check if this works? Would suggest a round of sanity testing if this was successful.

xcrun bitcode_strip -r Pods/razorpay-pod/Pod/Razorpay.xcframework/ios-arm64/Razorpay.framework/Razorpay -o Pods/razorpay-pod/Pod/Razorpay.xcframework/ios-arm64/Razorpay.framework/Razorpay

This error is due to XCode 16. We are looking into this issue as well. Until then this can be used as a workaround.

This was proven to work here

@omdosma
Copy link
Author

omdosma commented Oct 21, 2024 via email

@vivekshindhe
Copy link
Contributor

xcrun bitcode_strip -r Pods/razorpay-pod/Pod/Razorpay.xcframework/ios-arm64/Razorpay.framework/Razorpay -o Pods/razorpay-pod/Pod/Razorpay.xcframework/ios-arm64/Razorpay.framework/Razorpay

@omdosma
Copy link
Author

omdosma commented Oct 21, 2024 via email

@mohitk196
Copy link

mohitk196 commented Nov 30, 2024

Solution 1:

Run command from project root folder:
xcrun bitcode_strip -r Pods/razorpay-pod/Pod/Razorpay.xcframework/ios-arm64_armv7/Razorpay.framework/Razorpay -o Pods/razorpay-pod/Pod/Razorpay.xcframework/ios-arm64_armv7/Razorpay.framework/Razorpay
(I have changed the path a bit for latest SDK)

Solution 2: In your pod file add

post_install do |installer|
bitcode_strip_path = `xcrun --find bitcode_strip`.chop!
     def strip_bitcode_from_framework(bitcode_strip_path, framework_relative_path)
       framework_path = File.join(Dir.pwd, framework_relative_path)
       command = "#{bitcode_strip_path} #{framework_path} -r -o #{framework_path}"
       puts "Stripping bitcode: #{command}"
       system(command)
     end
     
     framework_paths = [" Pods/razorpay-pod/Pod/Razorpay.xcframework/ios-arm64_armv7/Razorpay.framework/Razorpay"
     ]

     framework_paths.each do |framework_relative_path|
       strip_bitcode_from_framework(bitcode_strip_path, framework_relative_path)
     end
end

Both solutions will give you the same result.

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