Imran malik
Imran malik

Reputation: 21

framework not found .xcframework

I have created a .xcframework using Xcode 11.0 command line. And it is working fine if I simply drag and drop it on any Xcode project above Xcode 11.0. I have tried on Xcode 11.0, 11.1, 11.2.1 and it is working perfectly on them. Now I am trying to use it through Cocoapods. To do so I have created podspec file given the local path of the framework. It is installing the pods successfully as well into the project. But now when I am trying to build the project it is getting failed by saying

ld: framework not found RandomNames.xcframework

I am not sure where the problem is, because it is working fine if we use directly dragging into the project. I have checked the framework search path, tried to pod disintegrate, clean and install them again but no success.

This is what error I am getting:

enter image description here

and below is my .podspec file which I am using:

enter image description here

Upvotes: 2

Views: 8552

Answers (1)

Derryl Thomas
Derryl Thomas

Reputation: 1578

It looks like they've added support for xcframeworks now and released a beta version (CocoaPods 1.9 Beta). Try giving it a shot! :)

Upvotes: 2

Related Questions