App Store Connect Operation Error/Warning 记录

ERROR ITMS-90635: "Invalid Mach-O Format. The Mach-O in bundle "xxxx.app/Frameworks/xxxx.framework" isn’t consistent with the Mach-O in the main bundle. The main bundle Mach-O contains armv7(machine code) and arm64(machine code), while the nested bundle Mach-O contains armv7(machine code) and arm64(machine code). Verify that all of the targets for a platform have a consistent value for the ENABLE_BITCODE build setting."

ERROR ITMS-90171 "Invalid Bundle Structure - The binary file 'xxxx.app/Frameworks/xxxx.framework/xxxxx is not permitted. Your app can’t contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. Refer to the Bundle Programming Guide at https://developer.apple.com/go/?id=bundle-structure for information on the iOS app bundle structure."

解决方法

这两个问题一般一起出现

1、在 Build Settings 中找到 Enable BitCode 设置为 NO

2、在 General 中找到 Frameworks, Libraries, and Embedded Content ,找到文中所描述的 Frameworks ,并在 Embed 一栏中选择 Do Not Embed


ERROR ITMS-90362: "Invalid Info.plist value. The value for the key 'MinimumOSVersion' in bundle xxxx.app/Frameworks/xxxx.framework is invalid. The minimum value is 8.0"

解决办法

找到文中描述的 xxxx.framework 目录下的 info.plist 文件,找到 MinimumOSVersion 一栏并修改值为 8.0


ERROR ITMS-90746: "Invalid Info.plist value. Your app can't claim an LSHandlerRank of "Owner" for any CFBundleDocumentTypes containing a public.data LSItemContentType. Please use "Alternate" as the LSHandlerRank instead."

解决办法

找到项目的 info.plist 中的 CFBundleDocumentTypes 里面的 LSItemContentType 一栏,修改 OwnerAlternate


ERROR ITMS-90058: "This bundle is invalid. The value for key CFBundleVersion [ZoomBundleVersionNumber] in the Info.plist file must be a period-separated list of at most three non-negative integers. Please find more information about CFBundleVersion at https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleversion"

ERROR ITMS-90059: "This bundle Payload/xxxx.app/Frameworks/xxxx.framework is invalid. The value for key CFBundleVersion [ZoomBundleVersionNumber] in the Info.plist file must be no longer than 18 characters. Please find more information about CFBundleVersion at https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleversion"

解决办法:

找到 Zoom 的目录里面的 info.plist 文件,将 CFBundleVersion 一栏的值按要求填写正确。(我这里的问题是 CFBundleVersion 一栏填了字符串,应该改成正常的版本号,比如:1.0)


ERROR ITMS-90124: "The binary is invalid. The executable 'xxxx.app/Frameworks/xxxx.framework/xxxx' has type 'OBJECT' that is not valid. Only 'EXECUTE' is permitted."

ERROR ITMS-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."

ERROR ITMS-90210: "Missing load commands. The executable at 'xxxx.app/Frameworks/xxxx.framework' does not have the necessary load commands. Try rebuilding the app with the latest Xcode version. If you are using third party development tools, contact the provider."

解决方法:

参考:https://www.cnblogs.com/dujiahong/p/9436671.html

Build Phases 中添加 New Run Script Phase 写上对应代码

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

find"$APP_PATH"-name'*.framework'-typed |whileread-r FRAMEWORK

do

FRAMEWORK_EXECUTABLE_NAME=$(defaultsread"$FRAMEWORK/Info.plist"CFBundleExecutable)

FRAMEWORK_EXECUTABLE_PATH="$FRAMEWORK/$FRAMEWORK_EXECUTABLE_NAME"

echo"Executable is $FRAMEWORK_EXECUTABLE_PATH"

echo$(lipo -info"$FRAMEWORK_EXECUTABLE_PATH")

FRAMEWORK_TMP_PATH="$FRAMEWORK_EXECUTABLE_PATH-tmp"

case"${TARGET_BUILD_DIR}"in

*"iphonesimulator")

    echo "No need to remove archs"

    ;;

*)

    if$(lipo"$FRAMEWORK_EXECUTABLE_PATH"-verify_arch"i386") ;then

    lipo -output"$FRAMEWORK_TMP_PATH"-remove"i386""$FRAMEWORK_EXECUTABLE_PATH"

    echo "i386 architecture removed"

    rm"$FRAMEWORK_EXECUTABLE_PATH"

    mv"$FRAMEWORK_TMP_PATH""$FRAMEWORK_EXECUTABLE_PATH"

    fi

    if$(lipo"$FRAMEWORK_EXECUTABLE_PATH"-verify_arch"x86_64") ;then

    lipo -output"$FRAMEWORK_TMP_PATH"-remove"x86_64""$FRAMEWORK_EXECUTABLE_PATH"

    echo "x86_64 architecture removed"

    rm"$FRAMEWORK_EXECUTABLE_PATH"

    mv"$FRAMEWORK_TMP_PATH""$FRAMEWORK_EXECUTABLE_PATH"

    fi

    ;;

esac

echo"Completed for executable $FRAMEWORK_EXECUTABLE_PATH"

echo$(lipo -info"$FRAMEWORK_EXECUTABLE_PATH")

done

ERROR ITMS-90362: "Invalid Info.plist value. The value for the key 'NSExtensionActivationRule' in bundle xxxx.app/PlugIns/xxxx.appex is invalid. Please refer to the App Extension Programming Guide on https://developer.apple.com"

解决办法:

xxxx.appex 的 **info.plist **中,将 NSExtensionActivationRule 一栏更改为 NSDictionary 类型,并添加以下参数:

NSExtensionActivationSupportsFileWithMaxCount、NSExtensionActivationSupportsImageWithMaxCount、NSExtensionActivationSupportsMovieWithMaxCount、NSExtensionActivationSupportsText、NSExtensionActivationSupportsWebURLWithMaxCount

如下图所示:

NSExtensionActivationRule配置

WARNING ITMS-90737: "Missing Document Configuration. By declaring the CFBundleDocumentTypes key in your app, you've indicated that your app is able to open documents. Please set the UISupportsDocumentBrowser key to "YES" if your app uses a UIDocumentBrowserViewController. Otherwise, set the LSSupportsOpeningDocumentsInPlace key in the Info.plist to "YES" (recommended) or "NO" to specify whether the app can open files in place. All document-based apps must include one of these configurations. For more information, visit https://developer.apple.com/document-based-apps/."

解决办法:

info.plist 中设置 LSSupportsOpeningDocumentsInPlace 一栏的值为 YES。


WARNING ITMS-90473: "CFBundleShortVersionString Mismatch. The CFBundleShortVersionString value '1.0' of extension 'xxxx.app/xxxx/xxxx.appex' does not match the CFBundleShortVersionString value '2.4.0' of its containing iOS application 'xxxx.app'."

**解决办法:

xxxx.appex 的info.plist中,CFBundleShortVersionString 低于 xxxx.app 项目的CFBundleShortVersionString:2.4.0,需要修改为 2.4.0 相同即可。


最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 206,214评论 6 481
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 88,307评论 2 382
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 152,543评论 0 341
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 55,221评论 1 279
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 64,224评论 5 371
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 49,007评论 1 284
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 38,313评论 3 399
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 36,956评论 0 259
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 43,441评论 1 300
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 35,925评论 2 323
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 38,018评论 1 333
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 33,685评论 4 322
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 39,234评论 3 307
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 30,240评论 0 19
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 31,464评论 1 261
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 45,467评论 2 352
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 42,762评论 2 345

推荐阅读更多精彩内容