We have a Swift Project where we use fastlane as build tool and CocoaPods for dependency management. Everything works fine on the development machine.
If we checkout the project on our new build server Mac Mini, we get the following error:
/Applications/buildAgent/work/1e0861a2675353b6/Appname/AppDelegate.swift:10:8: could not build Objective-C module 'HockeySDK'
The same lane on our development machine works perfectly fine. What are we missing here?
The XCode and Cocoapods Versions are the same on both machines.
I ran into same problem with a framework ' RealmSwift
'.
For me the problem was.
Source control
Some of the files from frameworks were not included in the commit. I was using Xcode to commit & push the code.
If you are using git, check if some of the files are missing by running ' git status
' on the machine that has working copy of code. Solution was to simply add the required missing files inside the project to git.
If that doesn't work you can try
Reinstalling the pods.
pod install
. It shall remove all the pods . pod install
again. Then clean & build the project.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.