xcode - Azure CI pipeline build error while building Xcode project
问题描述
I am trying to set up a CI pipeline using Azure DevOps and i am getting an error as follows while running the pipeline in the xcode section:
'FirebaseCore/FirebaseCore.h' file not found
#import <FirebaseCore/FirebaseCore.h>
'FirebaseCore/FirebaseCore.h' file not found
#import <FirebaseCore/FirebaseCore.h>
** BUILD FAILED **
The following build commands failed:
CompileSwift normal arm64
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
(2 failures)
##[error]Error: /usr/bin/xcodebuild failed with return code: 65
Finishing: Xcode
A small part of my podfile
is as follows:
#Firebase
pod 'Firebase/Analytics'
pod 'Firebase/Auth'
pod 'FirebaseInstanceID', '~> 4.3'
And my azure-pipelines.yml
file looks like this:
pool:
vmImage: 'macos-latest'
steps:
- task: CocoaPods@0
inputs:
forceRepoUpdate: true
projectDirectory: '$(system.defaultWorkingDirectory)'
displayName: 'pod install using the CocoaPods task with a forced repo update and a custom project directory'
- task: Xcode@5
inputs:
actions: 'build'
scheme: ''
sdk: 'iphoneos'
configuration: 'Release'
xcWorkspacePath: '**/*.xcodeproj/project.xcworkspace'
xcodeVersion: 'default' # Options: 8, 9, 10, default, specifyPath
I was been trying to get it solved by trying many fixes, but nothing helped. And now i don't know what to do. I would be really satisfied if anyone helps me out in this.
解决方案
推荐阅读
- oracle - 如何根据oracle中某个列的值查询获取行?
- javascript - 如何让函数等到前一行代码完成
- python - CART_SESSION_ID 持有什么?
- c# - 如何在简单的计算器中将 Console.ReadLine() 转换为 double ?C# 异常问题
- firebase - Bigquery crashlytics 数据集计划间隔
- python - 将新值分配给特定索引处的张量
- python - 如何在 Django admin 中将内联 ForeignKey 查询集限制为实例本身
- intellij-idea - Intellij Idea 调试无法访问 maven 存储库:连接被拒绝
- javascript - 从图像 url 创建文件对象
- ios - 如何将 iphone 连接到在 mac 上运行的本地服务器?