Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AppCenter build fails with no such module

My automatic iOS build on AppCenter fails with the following error (snippet):

ViewController.swift:10:8: error: no such module 'MBCircularProgressBar'
import MBCircularProgressBar
       ^

But I don't know what the problem might be. I'm using CocoaPods to import that framework.

My Podfile looks like this (removed all other pods):

target 'MyApp' do
  use_frameworks!

  pod 'MBCircularProgressBar'
end

And I have a Post Clone script appcenter-post-clone.sh which is recognized in AppCenter that contains:

#!/usr/bin/env bash

pod repo update
pod install

EDIT: After moving the offending file down in the list of files to compile, I get the same error for another CocoaPod. So it seems to me that no CocoaPods are being found

What is going wrong here?

like image 422
vrwim Avatar asked Jan 02 '23 15:01

vrwim


1 Answers

Can you check you are building your projects workspace? You'll need to build the workspace in orde to get Cocoapods to work, not the Xcode project.

like image 199
Jeroen Crevits Avatar answered Jan 14 '23 19:01

Jeroen Crevits