Submit iOS APP with iLocky.framework

^0C160E508DCFBE1AA4FF932347AEA547318B785EA494EF0A4D^pimgpsh_fullsize_distr

For ITMS-90087: “Unsupported Architectures…..” issue :

iLocky framework is built for both the simulator and the real device. It is convinient for developer to run the app both in the simulator and the real device without switching the framework. However, for submitting to app store, the developer should remove the simulator part for iLocky.framework. please refer to this link for further detail. In short, please add the following script to the build phase:

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

For ITMS-90362: “Invalid Info.plist value. The value for the key ‘MinimumOSVersion’ …..” issue :

iLocky.framework only supports iOS 8.0 and latter version. Please make sure the minimumOSVersion setting in your project is iOS8+

For ITMS-90209: “Invalid Segment Alignment. The app binary…” issue :

Please use the latest iLocky.framework to fix this issue.

 

One thought on “Submit iOS APP with iLocky.framework”

  1. We have replace ilocky.framework with new version 1.1 after that Application crashed with below message in console

    dyld: Library not loaded: @rpath/ilocky.framework/ilocky
    Referenced from: /var/mobile/Containers/Bundle/Application/CF05E0F2-A880-4C23-80F0-86659BFD389C/iLockyKeylessDemo.app/iLockyKeylessDemo
    Reason: image not found

    We have added framework in EMBEDDED BINARY, I have sent a screenshot using PMS.

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s