Error ITMS-90206 Invalid bundle contains disallowed file 'Frameworks'

牧云@^-^@ 提交于 2019-12-18 11:56:21

问题


I have a problem uploading my application into the Store via Xcode, this one in particular.

I saw a lot of post about this error, but all are talking about Extension App, that I do not use.

I'm using a Custom framework and Cocoapods.

You can see here my tree :

  • XXX is my project app name
  • SharedXXX is my custom framework
  • Pods is the project created by cocoa pods

Here is my cocoa podFile :

use_frameworks!
link_with 'XXX', 'SharedXXX'
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.1'


workspace 'XXX'

xcodeproj 'XXX/XXX.xcodeproj'
xcodeproj 'Shared/SharedXXX.xcodeproj'

def default_pods
    pod 'Reveal-iOS-SDK', :configurations => ['Debug']
    pod "SnapKit", '~> 0.17.0'
    pod "DKChainableAnimationKit", '~> 1.6.0'
    pod "AsyncSwift"
end

def shared_pods
    pod "Alamofire", '~> 3.0'
    pod 'SwiftyJSON', :git => 'https://github.com/SwiftyJSON/SwiftyJSON.git'
    pod 'ReachabilitySwift', :git => 'https://github.com/ashleymills/Reachability.swift'
end

target :XXX do
    xcodeproj 'XXX/XXX.xcodeproj'
    default_pods
    shared_pods
end

target :XXXDev do
    xcodeproj 'XXX/XXX.xcodeproj'
    default_pods
    shared_pods
end

target :SharedXXX do
    xcodeproj 'Shared/SharedXXXX.xcodeproj'
    shared_pods
end

Build settings for custom framework (SharedXXX) :

I set the Embedded property to Yes

General Settings for custom framework (SharedXXX) :

The framework provided by Cocoapods is linked.

And to finish,

The General Settings to the main project (App Project : called XXX on the tree)

:

Any idea ?


回答1:


I solved the problem

Firstly, set into Build Settings

  • For main project (here XXX) : Embedded Content Contains Swift Code to YES

  • Custom Framework (SharedXXX) : Embedded Content Contains Swift Code to NO

  • Custom Framework (SharedXXX) : Runpath Search Path = @executable_path/../../Frameworks

This helped me solving that issue




回答2:


I faced the same problem while trying to upload from Xcode 9.3 This happened because I added 'use_frameworks' in my OneSignal NotificationServiceExtension

The value Always Embed Swift Standard Libraries found in Build Settings should be set to Yes only for you main Projects and not for your custom frameworks or extensions.



来源:https://stackoverflow.com/questions/35748933/error-itms-90206-invalid-bundle-contains-disallowed-file-frameworks

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!