2017-08-11 56 views
0

我试图使用Jitsi Meet Framework和我在模拟器和实际设备上测试,都运行良好。直到我尝试归档应用程序并验证。它提供了以下错误:存档验证错误:不支持的体系结构,无效的段对齐等〜Jitsi Meet

iTunes Store operation failed. 
Unsupported Architectures. The executable for jitsi-meet.app/Frameworks/JitsiMeet.framework/Frameworks/WebRTC.framework contains unsupported architectures '[x86_64, i386]'. 

iTunes Store operation failed. 
Invalid Segment Alignment. The app binary at 'jitsi-meet.app/Frameworks/JitsiMeet.framework/Frameworks/WebRTC.framework/WebRTC' does not have proper segment alignment. Try rebuilding the app with the latest Xcode version. 

iTunes Store operation failed. 
Invalid Bundle. The bundle at 'jitsi-meet.app/Frameworks/JitsiMeet.framework' contains disallowed nested bundles. 

iTunes Store operation failed. 
Invalid Bundle. The bundle at 'jitsi-meet.app/Frameworks/JitsiMeet.framework' contains disallowed file 'Frameworks'. 

iTunes Store operation failed. 
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. 

的XCode版本:版本8.3.3(8E3004b)

感谢您的帮助。

回答

0

有2个问题,你的构建:

1)您使用嵌套的框架,这是不被苹果允许的。我们一开始就这样做,但是因为(如您所见)将应用程序提交到商店失败,所以转而离开它。参见此处的提交:https://github.com/jitsi/jitsi-meet/commit/d7818be0672b8ea39eca01970c4678d0ffc91491

2)WebRTC.framework的体系结构包括模拟器,在向商店提交时不允许使用这些模拟器。您可以在构建中使用以下脚本来过滤体系结构:https://github.com/jitsi/jitsi-meet/blob/master/ios/scripts/fixup-frameworks.sh

+0

对于第2点,我想我明白了(如果我错了,请纠正我):将脚本放到Target> Jitsi-Meet> Build Phases和添加运行脚本到最后。 但我不知道如何做第1点。我是否需要将链接中提交的差异添加到相应的文件? –

+0

检出Jitsi Meet Xcode项目,它具有运行该脚本的构建步骤,您可以将其复制。 – saghul