I am trying to automate the assembly / deployment of my hybdrid mobile app in Jenkins using fastlane. I use ionic (v3.3.0) and cordova (v7.0.1) for the source. I am using fastlane v2.36.0, and Xcode is version 8.3.2.
The command that I run in jenkins
yarn
ionic cordova prepare
fastlane ios build
Fastlane / fastfile
platform :ios do
before_all do
end
ios_project_path = "platforms/ios/awesomeproject.xcodeproj"
desc "Build for IOS"
lane :build do
increment_build_number(
xcodeproj: ios_project_path,
build_number: ENV["BUILD_NUMBER"]
)
recreate_schemes(project: ios_project_path)
update_project_team(
path: ios_project_path,
teamid: "TEAMID"
)
gym(scheme: "awesomeproject",
configuration: "Debug",
clean: true,
project: ios_project_path,
output_directory: "target")
end
end
Fastlane / appfile
package_name "com.xxx.awesomeapp"
app_identifier "com.xxx.awesomeapp"
apple_id "xxx.xxxx@xxx.com"
team_id "TEAMID"
The team fastlane ios builddoes not work in the simulator team with an error
Code signing is required for the product type "Application" in the SDK "iOS" 10.3 '
Detailed error in fastlane log
"awesomeproject" . . "" SDK "iOS" 10,3'
xcode, Cordova, , .
, , - Xcode /ios. , , XCode.
Fastlane ? , script.
, . update_project_team .