mirror of
https://github.com/bitwarden/android.git
synced 2026-03-09 11:44:41 -05:00
trouble compiling for iOS #348
Closed
opened 2025-11-07 08:36:32 -06:00 by GiteaMirror
·
13 comments
No Branch/Tag Specified
main
gh-readonly-queue/main/pr-6618-6473d54f16ae71d459ce94d4a57b6d317031a18b
remove-remember-viewmodel
sdlc/sdk-update
update-protobufs
PM-33266-crashlytics-bug
PM-32123/cookie-sync-error-message
PM-29861-update-overflow-content-description
PM-33227/clear-cookies-debug-button
update-agp
PM-26059-remove-cipher-key-encryption-flag
PM-29871-external-links
PM-29673/flight-recorder-export-header-info
renovate/lock-file-maintenance
release/2026.3-rc48
PM-24380/flight-recorder-redact-hostname
release/2026.2-rc47
PM-32714/fallback-to-web-vault-host
pr-6572
PM-28834/setting-app-layout-horizonos
PM-26896-autofill-fix
vvolkgang/process-release-notes-v2
PM-26577-app-links-support
release/2026.2-rc46
release/2026.1-rc45
PM-30644/added-logs-for-debug
PM-30644/quicktile-nav-not-showing-migration
minor-gradle-updates
release/2026.1-rc42
release/2026.1-rc44
release/2026.1-rc43
PM-28834/set-landscape-on-horizonos-devices
context-rules
devclarity/update-code-review-command
PM-20026/force-ltr-passwords-and-codes
release/2025.12-rc41
cmcg/testCoverage
claude-skill/creating-feature-flags
PM-29014/talkback-support-for-passwords
release/2025.12-rc40
BRE-1305/publish_test
accept-user-certs
autofill-permissions
release/2025.11-rc39
PM-22479/check-all-certificates-validate-asset-links
release/2025.10-rc38
agalles/android-latest
optimize-test-workflows
tier2-test-sharding
retro-agent
PM-27001/skip-account-selection-only-one-exists-cxp
release/2025.10-rc37
agalles/test-1118
release/2025.10-rc36
PM-20593-token-refresh
QA-1126b/adding-native-sanity-test
release/2025.9-rc35
pm-25933/sdk-update-password
release/2025.9-rc34
release/2025.8-rc33
agalles/20250821-release
debug-release-issues
pm-24249-allow-automated-prs-for-sdk-updates
release/2025.8-rc32
release/WORKFLOW-TEST-2025.8-rc28
agalles/20250807release
release/2025.07-rc25
release/hotfix-v2025.7.0-bwa
pm-23311/export-vault-policy-bypass
release/2025.07-rc24
authenticator-pm-sync-flags-issue
ps/implement-sdk-repository-example
release/hotfix-v2025.6.0-bwpm
release/2025.06-rc21
agalles/automate-android-fastlane-patch
release/2025.05-rc20
release/2025.04-rc19
languages/basque
release/2025.03-rc19
update-readme
qrcode/feature
innovation/archive/pm-19153-archive-items
qrcode/2-ui-fields
qrcode/1-page
hold-on-biometric-prompt-alternative
release-notes-process
release/2025.02-rc16
bwa-monorepo
PM-8223/new-device-verification-ux-improvements
pm-18451/exempt-from-policies
test-bwa
cs-workaround-linked-0-copy
release/2025.01-rc15
release/2025.01-rc14
release/2024.12-rc13
pm-16670/sync-leave-notice
821
PM-16695/backport-lean-more-new-device-verification
km/15084-testing
release/hotfix-v2024.11.7
release/2024.11-rc1
pm-11304/collection-add-item-button
PM-14241/disabling-logs-app-crash
poc/offline-editing
new-version-calc
pm-11649/expired-link-services
pm-6702/add-feature-flag
pm-6702/email-verification-feature
pm-9933/marketing-copy-update
pm-6702/registration-flows
update-templates
pm-6701/email-verification-selfhost-registration
v2026.2.1-bwpm
v2026.2.1-bwa
v2026.2.0-bwpm
v2026.2.0-bwa
v2026.1.1-bwa
v2026.1.1-bwpm
temp-test
v2026.1.0-bwpm
v2026.1.0-bwa
v2025.12.1-bwa
v2025.12.1-bwpm
v2025.12.0-bwa
v2025.12.0-bwpm
v2025.11.1-bwpm
v2025.11.1-bwa
v2025.11.0-bwpm
v2025.11.0-bwa
v2025.10.1-bwa
v2025.10.1-bwpm
v2025.10.0-bwa
v2025.10.0-bwpm
v2025.9.1-bwa
v2025.9.1-bwpm
v2025.9.0-bwa
v2025.9.0-bwpm
v2025.8.1-bwa
v2025.8.1-bwpm
v2025.8.0-bwa
v2025.8.0-bwpm
v2025.7.2-bwa
v2025.7.2-bwpm
v2025.7.1-bwa
v2025.7.1-bwpm
v2025.7.0-bwa
v2025.7.0-bwpm
v2025.6.1-bwpm
v2025.6.0-bwa
v2025.6.0-bwpm
v2025.1.0-bwa
v2025.5.0-bwa
v2025.5.0-bwpm
v2025.5.999
2025.4.0
v2025.4.0
untagged-4731eaadac73f3dfbbb8
v2025.3.0
v2025.2.0
untagged-815a165c5d70ffe75bc7
v2025.1.2
v2025.1.1
v2025.1.0
v2024.12.0
untagged-5a76b6392a4c8998c63a
v2024.11.7
v2024.11.6
v2024.11.5
v2024.11.4
v2024.11.3
v2024.11.2
v2024.11.1
v2024.11.0
v2024.10.2
v2024.10.1
v2024.10.0
v2024.9.0
v2024.8.1
v2024.8.0
v2024.7.3
v2024.7.2
v2024.7.1
v2024.7.0
v2024.6.1
v2024.6.0
v2024.5.1
v2024.4.1
v2024.4.2
v2024.4.0
v2024.3.3
v2024.3.1
v2024.3.0
v2024.2.1
v2024.2.0
v2024.1.1
v2024.1.0
v2023.12.0
v2023.10.0
v2023.9.2
maui-single-project-android
v2023.9.1
v2023.9.0
v2023.8.0
v2023.7.0
v2023.5.0
v2023.4.0
v2023.3.2
v2023.3.1
v2023.3.0
v2023.2.0
v2023.1.0
v2022.11.0
v2022.10.0
v2022.9.1
v2022.9.0
v2022.8.0
v2022.6.2
v2022.6.1
v2022.6.0
v2022.05.0
v2.18.0
v2.17.0
v2.16.4
v2.16.3
v2.16.2
v2.16.1
v2.15.0
v2.14.2
v2.14.1
v2.14.0
v2.13.0
v2.12.0
v2.11.3
v2.11.2
v2.11.1
v2.11.0
v2.10.0
v2.9.1
v2.9.0
v2.8.2
v2.8.1
v2.8.0
v2.7.2
v2.7.0
v2.6.1
v2.6.0
v2.5.6
v.2.5.5
v2.5.5
v2.5.4
v2.5.3
v2.5.2
v2.5.1
v2.5.0
v2.4.3
v2.4.2
v2.4.1
v2.4.0
v2.3.1
v2.3.0
v2.2.8
v2.2.7
v2.2.6
v2.2.2
v2.2.1
v2.2.0
v2.1.2
v2.1.0
v2.0.6
v2.0.5
v2.0.4
v2.0.3
v2.0.2
v2.0.1
v2.0.0
v1.22.1
v1.22.0
v1.21.0
v1.20.0
v1.19.0
v1.18.1
v1.18.0
v1.17.0
v1.16.0
v1.15.2
v1.15.1
v1.15.0
v1.14.4
v1.14.1
v1.14.0
v1.13.0
v1.12.2
v1.12.1
v1.12.0
v1.11.1
v1.11.0
v1.10.0
v1.9.0
v1.8.1
v1.8.0
v1.7.0
v1.6.5
v1.6.1
v1.6.0
v1.5.1
v1.5.0
v1.4.4
v1.4.3
v1.4.0
v1.3.0
v1.2.1
v1.2.0
v1.1.0
v1.0.0
v0.0.6
v0.0.5
v0.0.4
v0.0.3
v0.0.2
v0.0.1
No Label
Milestone
No items
No Milestone
Projects
Clear projects
No project
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/android#348
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pdarcos on GitHub (Feb 27, 2019).
Hi,
I've been trying to compile the iOS app using Visual Studio on a Mac Pro running mojave.
For some reason when trying to compile it always breaks with the following error:
/mobile/src/iOS.Core/Controllers/ExtendedUITableViewController.cs(7,7): Error CS0246: The type or namespace name 'XLabs' could not be found (are you missing a using directive or an assembly reference?) (CS0246) (iOS.Core)
There are 32 more error messages referencing the same problem with SQLite, Plugin and others.
In VS I right-click bitwarden-mobile-master and then Restore NuGet Packages and I don't get any errors. But as soon as I try to build the app I get the 33 errors which seem to indicate the project can't find the NuGet packages.
Any idea what I'm doing wrong?
Thanks
@pdarcos commented on GitHub (Feb 28, 2019):
Anyone else encounter this problem?
@kspearrin commented on GitHub (Feb 28, 2019):
Unfortunately I am not sure. Xamarin is huge pain to get up and running in the beginning.
@pdarcos commented on GitHub (Feb 28, 2019):
Thanks @kspearrin
I'll start again today from scratch and see how it goes
@pdarcos commented on GitHub (Mar 14, 2019):
Well I'm almost there. Solved all the issues by installing the missing nougat packages into ios core but now I'm getting one last error:
mobile/src/iOS.Core/Controllers/LoginAddViewController.cs(16,16): Error CS0023: Operator '!' cannot be applied to operand of type 'method group' (CS0023) (iOS.Core)
This is in reference to line 124 in LoginAddViewController.cs
protected async Task SaveAsync()
{
if(!_connectivity.IsConnected) -----line 124
{
AlertNoConnection();
return;
}
@pdarcos commented on GitHub (Mar 14, 2019):
@kspearrin any clue as to why I'm getting this error?
Operator '!' cannot be applied to operand of type 'method group'
It seems the last obstacle to a successful compilation.
Thanks
@kspearrin commented on GitHub (Mar 14, 2019):
Sorry, but I have no idea what that means.
@pdarcos commented on GitHub (Mar 27, 2019):
Ok, I'm pretty sure the problem is one of incompatibility between different nougat packages.
All other packages seem to work ok in NETFramework,Version=v4.6.1 except those listed below:
Any clue on how to resolve this error? Is it possible to force nougat to use NETStandard,Version=v2.0?
If so, where do I set those settings?
Cheers
@pdarcos commented on GitHub (Mar 27, 2019):
Also, iOS.Core seems to be missing all its nougat packages which obviously breaks compilation.
Can you tell me which ones I need to download (and versions too please)?
Cheers
@pdarcos commented on GitHub (Mar 27, 2019):
After adding all the missing packages manually I'm right back to the "Operator '!' cannot be applied to operand of type 'method group'" error message.
No clue as to why it's so hard to compile this app for iOS. Have you been able to compile it recently?
@pdarcos commented on GitHub (Apr 3, 2019):
I've playing with this some more and I'm almost there.
I now get the app to compile OK except it fails to get deployed because of certificates/entitlements.
I know Xamarin/VS is a pain to get working with these certs and after much exploration I think I know the origin of the problem.
The three projects (iOS, iOS.Autofill and iOS.Extension) all require the Keychain Sharing entitlement but I can find no fields in Apple's Developer console to enable that specific entitlement since it's simply not there. All the other entitlements I was able to add manually there without an issue.
I also tried to let VS do automatic configuration of the certs and profiles but I still get the same error message when deploying. This is not surprising since VS states that some entitlements cannot be added automatically by Xamarin/VS, namely "Push Notifications, Game Center, In-App Purchase, Maps, Keychain Sharing, Associated Domains, and Data Protection capabilities are not currently supported. To add these capabilities, use manual provisioning and follow the steps" Taken from here https://docs.microsoft.com/en-us/xamarin/ios/deploy-test/provisioning/capabilities/?tabs=macos
So if VS can't add that Keychain Sharing entitlement automatically, and there's no place (that I can see and I looked everywhere) in the Apple Dev Console to add that entitlement to an App ID, I don't see how to add that entitlement which is almost certainly why my app can't be deployed even though it compiles ok.
Anyone have any clues?
@MrVlad001 commented on GitHub (Jun 4, 2020):
@pdarcos any solutions ?
@cscharf commented on GitHub (Jun 4, 2020):
@pdarcos , have you popped open Xcode, ensured all necessary extensions and updates have been installed and that you have your Apple ID developer account provisioned, linked and appropriate local/test signing profile linked? You'll likely need to open a dummy Xcode iOS project in order to do so initially.
@eliykat commented on GitHub (Apr 29, 2021):
Hi @pdarcos, it appears we've not heard from you about this issue in some time. While we are now closing this issue, if it continues to be a problem please feel free to re-open this issue and provide any further information that may be helpful in reproducing the problem or helping you further.