paytm / Paytm_iOS_All_in_One_SDK

https://developer.paytm.com/docs/all-in-one-sdk/#ios
6 stars 5 forks source link

Code signing "AppInvokeSDK.framework" failed. #13

Open ravi123saxena opened 3 years ago

ravi123saxena commented 3 years ago

Hi ,

  1. I am getting error when try to create ipa file using development certificate.
  2. Getting Code signing error when uploading to appstore Screenshot 2020-10-18 at 11 29 02 PM Screenshot 2020-10-18 at 11 28 30 PM
n1tesh commented 3 years ago
 cd AppInvokeSDK.framework/

lipo -remove i386 AppInvokeSDK -o AppInvokeSDK && lipo -remove x86_64 AppInvokeSDK -o AppInvokeSDK

Then build an archive file again.

niteshjob111 commented 3 years ago
Screenshot 2020-10-21 at 5 41 55 PM

Same issue found pls help me

bhadjajay23 commented 3 years ago

Facing same issue is there any solution to solving this issue?

joshichirag70 commented 3 years ago

facing same issue @LalitChaudhary1 @ravi123saxena @niteshjob111

soumyavats commented 3 years ago

This issue can be resolved by adding the run script

You need to add this run script after the AppInvokeSDK is embedded

if you have already executed the lipo -remove command, in that case, you will have to add the SDK again in your project

PFB the run script

Type a script or drag a script file from your workspace to insert its path.

APP_PATH="${TARGET_BUILD_DIR}/${WRAPPER_NAME}"

This script loops through the frameworks embedded in the application and

removes unused architectures.

find "$APP_PATH" -name '*.framework' -type d | while read -r FRAMEWORK do FRAMEWORK_EXECUTABLE_NAME=$(defaults read "$FRAMEWORK/Info.plist" CFBundleExecutable) FRAMEWORK_EXECUTABLE_PATH="$FRAMEWORK/$FRAMEWORK_EXECUTABLE_NAME" echo "Executable is $FRAMEWORK_EXECUTABLE_PATH" EXTRACTED_ARCHS=() for ARCH in $ARCHS do echo "Extracting $ARCH from $FRAMEWORK_EXECUTABLE_NAME" lipo -extract "$ARCH" "$FRAMEWORK_EXECUTABLE_PATH" -o "$FRAMEWORK_EXECUTABLE_PATH-$ARCH" EXTRACTED_ARCHS+=("$FRAMEWORK_EXECUTABLE_PATH-$ARCH") done echo "Merging extracted architectures: ${ARCHS}" lipo -o "$FRAMEWORK_EXECUTABLE_PATH-merged" -create "${EXTRACTED_ARCHS[@]}" rm "${EXTRACTED_ARCHS[@]}" echo "Replacing original executable with thinned version" rm "$FRAMEWORK_EXECUTABLE_PATH" mv "$FRAMEWORK_EXECUTABLE_PATH-merged" "$FRAMEWORK_EXECUTABLE_PATH" done