博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
App Submission Issues
阅读量:6509 次
发布时间:2019-06-24

本文共 3370 字,大约阅读时间需要 11 分钟。

查看原文: 

 

I bet many iOS developers are busy submitting apps to the App Store lately after fixing issues on iOS 9. This blog post just listed the issues I came across lately when submitting apps to App Store.

  1. I was using Xcode 7 GM to submit one app, which uses  and . Here is error message:

Unsupported architectures. The executable for xxxx/Realm.framework contains unsupported architectures [x86_64, i386]

Unsupported architectures. The executable for xxxx/RealmSwift.framework contains unsupported architectures [x86_64, i386]

The reason is that dynamic library has i386 or x86_64 code and we cannot embed them in the app, so we need to strip out any non-arm code from the app.

After some research I found the script from this , just go to the tab page "Build Phases" of the app target in Xcode, add a "New Run Script Phase", copy the script and paste there, archive your app then it should work. Here is the 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

  

2.I was using Xcode 7 GM to submit one iPad app, which just supports landscape orientation, then encountered this error:

Invalid Bundle. iPad Multitasking support requires these orientations...

Invalid Bundle. iPad Multitasking support requires launch story board in bundle 'com.xxx....'

iPad Multitasking support requires all the orientations but the app does not, so we need to opt out it, just add the UIRequiresFullScreen key to your Xcode project’s Info.plist file and apply the Boolean value YES.

 

3.I was using Xcode 6.4 to submit one app, but got the following warning message after submitting the app to App Store.

Missing Push Notification Entitlement - Your app appears to include API used to register with the Apple Push Notification service, but the app signature's entitlements do not include the "aps-environment" entitlement. If your app uses the Apple Push Notification service, make sure your App ID is enabled for Push Notification in the Provisioning Portal, and resubmit after signing your app with a Distribution provisioning profile that includes the "aps-environment" entitlement.

Actually the app does not have any push notification code. Then I tried to resubmit the app using Xcode 7 and there is no warning anymore. It might be a bug that is also mentioned on .

其它博文:

More blog posts on 

欢迎关注我的微信公众号

 

Hope this helps, 

Michael 

转载于:https://www.cnblogs.com/mobilegeek/p/4851883.html

你可能感兴趣的文章
UDP中转服务器
查看>>
多核编程的四层境界
查看>>
Windows Phone 实用开发技巧(11):让StackPanel中的控件靠右对齐
查看>>
小记如何修改xen模块
查看>>
centos访问windowsxp共享资源指南.
查看>>
实时游戏对战引擎Photon
查看>>
C语言位操作控件属性
查看>>
nginx的安装及基本配置,及多个域名服务
查看>>
Servlet访问postgresql数据库并提取数据显示在前端jsp页面
查看>>
不改一行代码定位线上性能问题
查看>>
定义运算符
查看>>
git管理
查看>>
idea演示
查看>>
Android第三十天
查看>>
告别暗黄皮肤变水嫩皮肤的8个小习惯
查看>>
[Big Data - Kafka] kafka学习笔记:知识点整理
查看>>
加强Eclipse代码自动提示的方法
查看>>
【HM】第4课:MySQL入门
查看>>
GNS3-地址重叠环境中部署IPsec
查看>>
exchange online 用户疑问之许可证和用户数据归档
查看>>