Hi,

我们使用的是:Xcode 7.2.1 + 手动导入动态库release-3.3.5。
模拟器和真机调试正常。
在archive upload to App Store时有以下问题:

1)
ERROR ITMS-90087: "Unsupported Architectures. The executable for ***.app/Frameworks/ACOSCloud.framework contains unsupported architectures '[x86_64, i386]'."

2)
WARNING ITMS-90159: "Invalid provisioning profile. This app contains an embedded provisioning profile that is not associated with your account.Please use a provisioning profile associated with team id xxxx"

3)
ERROR ITMS - 90179 Invalid Code Signing. The Executable 'Payload/xxx.app/Frameworks/ACOSCloud.framework' must be signed with a certificate that is contained in the provisioning profile.

4)
ERROR ITMS-90209: "Invalid Segment Alignment. The app binary at '***.app/Frameworks/ACOSCloud.framework' does not have proper segment alignment. Try rebuilding the app with the latest Xcode version."

5)
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."

6)
The resulting API analysis file is too large. We were unable to validate your API usage prior to delivery. This is just an informational message.

现在产品上线卡在这里了,麻烦帮看下是什么原因,已经解决方法的具体步骤是什么,谢谢。

这里除Linked Frameworks And Libraries外,还必须把AVOSCloud.framework添加到TARGET->General的Embedded Binaries中,不然会出现下面的出错:
dyld: Library not loaded: @rpath/AVOSCloud.framework/AVOSCloud
Referenced from: /Users/xxx/Library/Developer/CoreSimulator/Devices/5066D703-D48E-4FA5-AB24-F28238D25E62/data/Containers/Bundle/Application/DFC2ABD8-5FAC-4039-A45E-23E1923430C6/xxx.app/xxx
Reason: image not found

所以将AVOSCloud.framework添加到TARGET->General的Embedded Binaries中。
然后,在Target的Build Phases的Run Script中添加sh(http://ikennd.ac/blog/2015/02/stripping-unwanted-architectures-from-dynamic-libraries-in-xcode/)。

但是上面的Errors一直存在。

谁archive成功的,可以分享下是怎么手动添加动态库的吗?谢谢!

您好,iOS SDK 开源之后不再允许手动添加动态库。
可以使用 pod 进行安装。

谢谢 @ycui
上面是我将leandcloud-sdk-master中的AVOSCloud.framework导入遇到的问题。
后面我换为导入objc-sdk-framework(按照https://leancloud.cn/docs/sdk_setup-ios.html的步骤),并添加run script,然后archive可以提交了。

PS:第六个问题一直存在。
6) The resulting API analysis file is too large. We were unable to validate your API usage prior to delivery. This is just an informational message.