lvsti / CEF.swift

Swift bindings for the Chromium Embedded Framework
BSD 3-Clause "New" or "Revised" License
94 stars 29 forks source link

bundle format unrecognized, invalid, or unsuitable In subcomponent: #31

Closed Vactorwang closed 6 years ago

Vactorwang commented 6 years ago

I've import CEFswift.framework. But when i build for Mac app,it said /MacGate.app: bundle format unrecognized, invalid, or unsuitable In subcomponent: /MacGate.app/Contents/Frameworks/Versions/A/Modules/CEFswift.swiftmodule

lvsti commented 6 years ago

From the path you showed it looks like that you somehow copied only the internals of the CEFswift.framework, not the framework itself. Inside your MacGate.app the path should look like this:

MacGate.app/Contents/Frameworks/CEFswift.framework/Versions/A/...
WarWithinMe commented 6 years ago

Also notice that currently Chromium Embedded Framework.framework structure is different from other bundle. You have to manually make its structure the same as other bundle, otherwise codesign will complain