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

Errors when Submit to Apple Store #5

Open
ojoaomorais opened this issue Oct 20, 2016 · 2 comments
Open

Errors when Submit to Apple Store #5

ojoaomorais opened this issue Oct 20, 2016 · 2 comments

Comments

@ojoaomorais
Copy link

Guys, help me. I have something issues when try to submit to apple store. All works fine in Debug. I face Architetures problems before, but fix it with 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

But now on Swift 3 i have this troubles. I try to fix then but with no success .Here a print from my problems.

captura de tela 2016-10-20 as 16 40 57

Thanks!

@gabrieldusa
Copy link

Hello,

Can you please tell us how are you using the framework? Are you using the provided framework inside the "CompiledLibrary" folder or are you building it by yourself?

Thanks!

@ojoaomorais
Copy link
Author

Hi. Yes. I decide to use other framework right now, based on cocoapods. But im was using "CompiledLibrary" folder.Im getting a lot of errors with the Apple submit and i dont know why.I hope that you build a Cocoapod library as soon,your framework works well.

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