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

code signing "razorpay.framework" failed. view distribution logs for more information. #213

Closed
Biplovkumar opened this issue Aug 27, 2019 · 4 comments

Comments

@Biplovkumar
Copy link

Biplovkumar commented Aug 27, 2019

Screenshot 2019-08-28 at 10 05 24 AM

Error in Upload .ipa file.

Environment :-
"react-native-razorpay": "^2.1.29",]

i am stuck on this issue in X-code 10.3

@Biplovkumar
Copy link
Author

it is working fine but not able to publish app in App store .
i had followed all the step which is mentioned.
Only this step not able to follow this step.

@Biplovkumar
Copy link
Author

Screenshot 2019-08-28 at 3 49 34 PM

build multiple time but not able to produce, All the time same error.

@Biplovkumar
Copy link
Author

Any update plz

@Biplovkumar
Copy link
Author

Biplovkumar commented Aug 29, 2019

Solution 👍
1.Go in buildPhases
2.Click on Add button.
3. Add this script
`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`

Ref Video :-https://www.youtube.com/watch?v=4CltlmkhpAY

RefWebsite for script :-http://ikennd.ac/blog/2015/02/stripping-unwanted-architectures-from-dynamic-libraries-in-xcode/
Screenshot 2019-08-29 at 9 52 45 AM

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

1 participant