Fastlane Match / Bitrise / Provisioning Profile mismatch - fastlane

I'm using Fastlane match in a lane on Bitrise.
The lane correctly runs match, with the output under the heading "Installed Provisioning Profile", saying the installed profile is named: "match Development com.xxx.yyy"
When I check that profile in the App Developer Portal (it's the only profile I've got set up), the name matches, and the portal says "Enabled Capabilities: Associated Domains, Game Center, In-App Purchase, Push Notifications").
Yet fastlane gym still reports:
error: "<app name>" requires a provisioning profile with the Associated Domains and Push Notifications features. Select a provisioning profile in the Signing & Capabilities editor.
The lane is:
lane :ios_build do
match(
type: "development",
app_identifier: "com.xxx.yyy",
git_url: "https://#{ENV['MATCH_GIT_USERNAME']}:#{ENV['MATCH_GIT_PASSWORD']}#gitlab.com/<project>/<repo>.git",
storage_mode: "git",
team_id: "<team id>",
app_identifier: "com.xxx.yyy",
readonly: true
)
disable_automatic_code_signing(path: "/Users/vagrant/git/src-cordova/platforms/ios/xxx.xcodeproj")
build_app(
scheme: "<scheme name>",
workspace: "/Users/vagrant/git/src-cordova/platforms/ios/xxx.xcworkspace"
)
enable_automatic_code_signing(path: "/Users/vagrant/git/src-cordova/platforms/ios/xxx.xcodeproj")
end
Any ideas?
Regards,
Andy

Related

SPGO Error when trying to connect to SP On-Prem

I am new to SPGO and trying to use on SP On-Prem 2016 in a corp environment. I do not have to sign into SP but am authenticated via CAC. I chose NTLM but was prompted for my credentials so I don't know what the password is since I don't have to enter one. I then tried the "AddinOnly" method and was able to supply a client ID, entering "", secret: "", and realm: "". I did this by first registering an app and generating that info. That got me a little closer (or so it seemed). My workspace resides in C:\Users\myName\SPSites
SPGo.json setup:
{
"sourceDirectory": "src",
"sharePointSiteUrl": "https://fake.com/sitename/site",
"workspaceRoot": "c:\Users\myName\SPSites",
"publishWorkspaceOptions": {
"destinationFolder":"/",
"globPattern":"c:\Users\myName\SPSites\src*.",
"localRoot":"c:\Users\myName\SPSites\src"
},
"publishingScope": "SaveOnly",
"authenticationType": "AddinOnly",
"remoteFolders": [
"/siteassets/"
]
}
app permissions:
<AppPermissions AllowAppOnlyPolicy="true">
<AppPermissionRequest Scope="http://sharepoint/content/sitecollection" Right="FullControl"/>
</AppPermissionRequests>
VSCodeVersion: 1.65.0
SP On-Prem: 2016
It says Starting File Synchronization when I try to populate workspace and it just hangs with Populating Workspace (bottom left) just spinning. Eventually I get an error about the workspace.
Also got this error, which is new: Output: syntax error: Unexpected token m in JSON at position 363. Might just be my typing. So I did populate workspace again and entered app credentials (client id, etc). It is now just hanging, Starting File Synchronization ... Populating Workspace

Fastlane plugin app center giving Provided app_name: 'helloworldtest" is not in a valid format

I am having problem with uploading the ipa in app center using fastlane app center plugin.
When I run fastlane test_autocreation --verbose, I am getting this error:
Provided app_name: 'helloworldtest" is not in a valid format.Please ensure no special characters or spaces in the app_name.
Here's the lane that is responsible in doing it:
lane :test_autocreation do
appcenter_upload(
api_token: "******",
owner_type: "organization",
owner_name: "*****",
app_os: "ios",
app_name: "helloworldtest",
ipa: "./build_Dev/helloworldtest.ipa",
destinations: "*"
)
end
Is there something that I may have missed?
The error message might be poorly worded (my bad!), as this could be due a problem in the org name too. Please use the org name as seen in the App Center URL. For example for my test app in org "JP Org", I have to use owner_name: "JP-Org":
https://appcenter.ms/orgs/JP-Org/apps/TestOrgApp
I hope this helps. If the problem persists, please open an Issue on GitHub.

Error: "XXX" Requires a provisioning profile

so boggling with Fastlane for 1 week now i got nothing but errors.
By opening XCode and setting the Profile manually makes the build succeed. But there isn't much point to automation if there are manual steps.
My Fastfile looks like this:
default_platform(:ios)
platform :ios do
desc "Build project"
lane :beta do
update_info_plist(
plist_path: "./info.plist",
app_identifier: "com.skinke.app"
)
cert
sigh(adhoc:true)
gym(
export_options:{
method:"ad-hoc",
provisioningProfiles:{
#"com.skinke.app" => "AdHoc_com.skinke.app.mobileprovision" ## nope
"com.skinke.app" => "com.skinke.app AdHoc" ## also nope
}
}
)
end
end
So I've had no luck getting Gym to pick up the provisioningprofile. I suspect the error actually originates from XCode, but gym should have injected it right?
My intention is once this is successful i need to automate pushing to a USB connected iPad.
As a side question: There doesn't happen to be a dedicated tech support somewhere?

fastlane existing file at resultBundlePath

When I run my fast lane build it fails with
xcodebuild: error: Existing file at -resultBundlePath "/Users/dude/workspace/testMe/output/testMe.result"
My lane actions are
setup_jenkins
clean_build_artifacts
increment_build_number
match
gym
pilot
reset_git_repo
I know I can just add an action to delete this file specifically, but it seems more likely that I'm doing something wrong.
I had the same problem until I browsed fastlane code and found a workaround. Setting result_bundle to false helped in my case, e.g.
desc "Submit a new build to App Store"
lane :production do
setup_jenkins(result_bundle: false)
gym(...)
deliver(...)
end

System Keychain Has an Entry that can't be deleted

I'm trying to build my app with xcode and it's throwing a code sign error saying:
iPhone Distribution: jetheat: ambiguous (matches "iPhone Distribution: jetheat" in /Library/Keychains/System.keychain and "iPhone Distribution: jetheat" in /Users/Jet/Library/Keychains/login.keychain
Command /usr/bin/codesign failed with exit code 1
So it says that I have two distribution certificates in my keychain, which is true as i can see that in my keychain.
But when I try to delete the certificate within the system keychain, it just wont allow me to do it.
It says:
An error occurred while deleting “iPhone Distribution: jetheat.”
The specified item could not be found in the keychain.
Any ideas what I can do?
Thanks,
JH