iOS提审报错Asset validation failed(90087),Asset validation failed (90125)

问题:iOS提审时被苹果打回,打回原因如下:

Asset validation failed (90125)
The binary is invalid. The encryption info in the LC_ENCRYPTION_INFO load command is either missing or invalid, or the binary is already encrypted. This binary does not seem to have been built with Apple's linker. 

Asset validation failed (90087)
Unsupported Architectures. The executable for gctxtw.app/Frameworks/AdjustSigComHotgamecenterZlsgSdk.framework contains unsupported architectures '[x86_64, i386]'. 
Asset validation failed (90125)
The binary is invalid. The encryption info in the LC_ENCRYPTION_INFO load command is either missing or invalid, or the binary is already encrypted. This binary does not seem to have been built with Apple's linker. 

报错原因可以看到是因为AdjustSigComHotgamecenterZlsgSdk.framework这个三方库文件包含了x86_64,i386这两个框架;

解决方法:

方案一:

1、先查看.framework这个三方库文件包含的框架;

lipo -info xxxxxx..framework/xxxxxx

Architectures in the fat file: XXXX.framework/XXXX are: x86_64 armv7 arm64

2、剔除掉x86_64和i386这两个框架,只保留armv7和arm64。

lipo xxxxxx.framework/xxxxxx -thin armv7 -output xxxxxx_armv7
lipo xxxxxx.framework/xxxxxx -thin arm64 -output xxxxxx_arm64
lipo -create xxxxxx_armv7 xxxxxx_arm64 -output xxxxxx
mv xxxxxx xxxxxx.framework/

3、再重复第一步,确认一下包含的框架,直到不包含x86_64,i386这两个框架就可以了;

方案二:

是在TARGETS->Build Phases->点击加号选择New Run Script 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

我这里是只用了方案一重新打包上传就成功了。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
As one of the firts Asset Store publishers we care and support all our customers. * Do you miss some feature? Let us know! * Do you have any troubles? Let us know! Other ways got in touch Unity Forum Thread | Playmaker Thread Follow us Twitter | Facebook | Google+ | LinkedIn All Source Code is Open! iOS6, iOS7, iOS8, iOS9, iOS10 - supported Fully compatible with All Stan's Assets Plugins Short features list: Game Center * iTunes Setup * Init The Game Center * Leaderboards * Achievements * Changes * Friends * Real-Time Multiplayer * Trun Based Multiplayer In-App purchases (Cons. / Non-Cons.) * iTunes Setup * Coding Guidelines * Transactions Validation * Restoring Purchases * Store Product View Social Sharing * Facebook Post * Twitter Post * Native Sharing Dialog * Sending e-mail * Documentation Apple TV * tvOS InApps * tvOS Game Center Post * tvOS iCloud * tvOS Gesture Recognition * Documentation iAd App Network * Banners * Interstitials * 9 Gravity Options supported * Ability to set Custom x, y banner point * iTunes Setup * Coding Guidelines Camera And Gallery * Taking Photo from Camera * Loading Texture from Gallery * Saving Texture to Gallery * Saving Screenshot to Gallery * Coding Guidelines iCloud * iTunes Setup * Coding Guidelines * Cloud Kit More features * Video API * Media Player API * Local Notifications * Push Notifications * Shared App API * Date Time Picker * Poups and Pre-loaders * System Native Events * Flash Like Events as gift Playmaker * Avaliable Actions List * iAd Playmaker Actions Guide * InApp Purchasing with Playmaker Supported 3-rd party plugins: * Playmaker - Artists and Designers: Realize your creative vision without coding! Unlock the power of Unity. * Simple IAP System - Takes the complexity out of in-app purchases (IAPs) and the billing process as a whole by providing a one-stop solution for managing IAPs. * OneSignal Boost Engagement With Smart Push Notifications. * Soomla Grow - With SOOMLA Grow, traditional analytics fade away. Instead of knowing your users based only on data you collect, you can now study their behavior across thousands of games. Contact Stan's Assets support

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值