Skip to content

Instantly share code, notes, and snippets.

@wli
wli / resign_ipa.md
Last active June 2, 2022 20:56
Expo build with associatedDomains

Resign Expo IPA for associatedDomains

You can also generalize these instructions to modify your ipa for any other reason.

Error message

ERROR ITMS-90046: "Invalid Code Signing Entitlements. Your application bundle's signature contains code signing entitlements that are not supported on iOS. Specifically, value '*' for key 'com.apple.developer.associated-domains' in 'Payload/Exponent.app/Exponent' is not supported."

Assumptions

  • My app id is io.getsparks.sparks
  • My distribution certificate name is iPhone Distribution: Boost Labs, Inc
@wli
wli / html_safe.rb
Last active August 29, 2015 14:15
How not to handle HTML escaping in Ruby on Rails.
# Found this in our codebase the other day. Our contractor couldn't figure out how to
# escape html for ouput, so he overrode a Ruby-on-Rails builtin and disabled HTML-injection
# protection for the entire website.
class Object
def html_safe?
true
end
end