Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xcrun -find bitcode_strip is running every time I deploy locally to an iPad #24552

Closed
dsancho opened this issue Aug 31, 2024 · 9 comments
Closed
Labels
area-publishing Issues with the app packaging/publishing process (ipk/apk/msix/trimming) platform/iOS 🍎 s/needs-info Issue needs more info from the author s/no-recent-activity Issue has had no recent activity s/triaged Issue has been reviewed t/bug Something isn't working

Comments

@dsancho
Copy link

dsancho commented Aug 31, 2024

Description

The problem is that every time I want to debug my application on the iPad, it takes like 30 minutes to run the command xcrun -find bitcode_strip for GoogleMobileAds library. The think is that this library already has been striped and running this command does nothing.

First time I can understand that it is needed to do this process for /XamarinBuildDownloadCache/FAdM-8.13.0/Frameworks/GoogleMobileAdsFramework-Current/GoogleMobileAds.xcframework/ios-arm64_armv7/GoogleMobileAds.framework/GoogleMobileAds but the generated file can be used for subsequent compilations.

I asked GPT and answered to put this in my project

<_StripBitcodeFromFrameworksMasterDependsOnTargets Condition="'$(OS)'=='Windows_NT'">_StripBitcodeFromFrameworksOnWindows</_StripBitcodeFromFrameworksMasterDependsOnTargets>

BUT did not work.

Steps to Reproduce

  1. Create a new MAUI iOS project
  2. Add any package that references Xamarin.Google.iOS.MobileAds (8.13.0.3). For example, Plugin.MauiMTAdmob
  3. You need an Apple developer account, and the device added to a profile for this application.
  4. Try to debug in a connected device

Link to public reproduction project repository

No response

Version with bug

9.0.0-preview.7.24407.4

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

@dsancho dsancho added the t/bug Something isn't working label Aug 31, 2024
Copy link
Contributor

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@dsancho
Copy link
Author

dsancho commented Aug 31, 2024

I have found a workaround that is to comment the following lines from Xamarin.Google.iOS.MobileAds.targets (in the nuget package folder)

<ItemGroup Condition="('$(OutputType)'!='Library' OR '$(IsAppExtension)'=='True')">
    <_FrameworkNamesToStripBitcode Include="GoogleMobileAds" />
  </ItemGroup>

but the ideal is that somehow, visual studio was able know that the file in the XamarinBuildDownloadCache has been already striped.

@drasticactions
Copy link
Contributor

@rolfbjarne Would this be an SDK issue?

@rolfbjarne
Copy link
Member

This is probably a bug in the Xamarin.Google.iOS.MobileAds NuGet, but if you could get an MSBuild binlog I should be able to confirm what's going on.

@dsancho
Copy link
Author

dsancho commented Sep 5, 2024

This happens to other packages too. It will happen for any package that needs to be striped.

@QianaJiao
Copy link

Hi, @dsancho I noticed that you also debug to the local iOS device, and using xcframework resource, so it may be the same as #23829 (comment)

@QianaJiao QianaJiao added the s/triaged Issue has been reviewed label Sep 9, 2024
@rolfbjarne
Copy link
Member

Hi, @dsancho I noticed that you also debug to the local iOS device, and using xcframework resource, so it may be the same as #23829 (comment)

No, it's not (xcframeworks work fine with Hot Restart, I've created a PR to update the documentation).

@jfversluis jfversluis added the s/needs-info Issue needs more info from the author label Sep 9, 2024
Copy link
Contributor

Hi @dsancho. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@mattleibow mattleibow added the area-publishing Issues with the app packaging/publishing process (ipk/apk/msix/trimming) label Sep 12, 2024
@dotnet-policy-service dotnet-policy-service bot added the s/no-recent-activity Issue has had no recent activity label Sep 17, 2024
Copy link
Contributor

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-publishing Issues with the app packaging/publishing process (ipk/apk/msix/trimming) platform/iOS 🍎 s/needs-info Issue needs more info from the author s/no-recent-activity Issue has had no recent activity s/triaged Issue has been reviewed t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants
@rolfbjarne @drasticactions @jfversluis @mattleibow @dsancho @samhouts @QianaJiao and others