Closed Suplanus closed 10 months ago
Thanks for the feedback.
Unfortunately, there is not sufficient information here to look into this.
Could you please attach a full build log.
It may also be a good idea to clean obj and bin directories in case you have a stale build there.
I already cleared obj & bin folders to ensure all files are fresh. The build log is now attached to the main description above. Sorry about german. VS is in english but the OS in german. Let me know if you need more information.
What version of Xamarin.Mac do you have installed?
When you launch /Applications/Xcode.app what does it show?
Are you building this locally or are you using something hosted like AppCenter?
All information I had described in the description above.
I also updated, but same error:
VS 17.0 4729
Xcode xCode 13.1 (13A1030d)
xamarin-ios-15.2.0.1 (not sure but I think thats the release which is shipped in the preview channel now)
Not tested with AppCenter. I am testing locally.
You appear to be building a Xamarin.Mac application:
/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/bin/mmp
Please provide the version of Xamarin.Mac, not the version of Xamarin.iOS.
Could you also answer this:
When you launch /Applications/Xcode.app what version does it show?
The path suggests it is a final release of Xcode, but I'd like confirmation that you don't have a beta installed instead.
Xamarin.Mac:
8.2.0.1
Xcode:
Beta was installed, but I removed it, and I had set the xcode-select
. Also checked the setting in VS. Here the screenshot:
Sorry, I somehow missed the e-mail notification this issue.
8.2.0.1 does line up with d16.11 (Xcode 13.1), so that make sense.
As noted before, we need a full build log and/or sample to be able to help you here.
No problem.
The build log is above in the description.
If needed, I can give you access to the private repo.
That build log doesn't include sufficient information. Consider posting one set to diagnostic or ideally binary (https://docs.microsoft.com/en-us/visualstudio/msbuild/obtaining-build-logs-with-msbuild?view=vs-2022#save-a-binary-log).
What do you mean with binary? The .app or the .apk or both?
Is there a option for VS get the binary log?
The documentation I linked is "Save a binary log", and goes into details on how to produce one.
We are getting the same issue, Xcode 13.2.1, also tried on a different machine to rule out issues there.
Xamarin.Mac 8.6.0.3, also tried downgrading to 8.2.0.17 but having the same error.
App works fine, and can be submitted to internal Testflight, but not to external groups...
@Suplanus Don't know if you're still battling with this, but I fixed it by adding this to my .csproj...
<Target Name="BeforeCodeSign">
<Exec Command="/usr/libexec/PlistBuddy -c 'Add :DTPlatformBuild string 13C100' $(_AppBundlePath)Contents/Info.plist" />
<Exec Command="/usr/libexec/PlistBuddy -c 'Add :DTPlatformVersion string 12.1' $(_AppBundlePath)Contents/Info.plist" />
<Exec Command="/usr/libexec/PlistBuddy -c 'Add :DTSDKBuild string 21C46' $(_AppBundlePath)Contents/Info.plist" />
<Exec Command="/usr/libexec/PlistBuddy -c 'Add :DTSDKName string macosx12.1' $(_AppBundlePath)Contents/Info.plist" />
<Exec Command="/usr/libexec/PlistBuddy -c 'Add :DTXcode string 1321' $(_AppBundlePath)Contents/Info.plist" />
<Exec Command="/usr/libexec/PlistBuddy -c 'Add :DTXcodeBuild string 13C100' $(_AppBundlePath)Contents/Info.plist" />
</Target>
@munit79 interesting... i assume this information is based on the version of Xcode you have installed and your macOS version?
I added the info directly into the info.plist and that seemed to work!
<key>DTPlatformBuild</key>
<string>13C100</string>
<key>DTPlatformVersion</key>
<string>12.1</string>
<key>DTSDKBuild</key>
<string>21C46</string>
<key>DTSDKName</key>
<string>macosx12.1</string>
<key>DTXcode</key>
<string>1321</string>
<key>DTXcodeBuild</key>
<string>13C100</string>
@munit79 interesting... i assume this information is based on the version of Xcode you have installed and your macOS version?
Yes, it was, made a skeleton app in Xcode and got the info from there, I guess Apple has started enforcing this fairly recently.
Seems like something the team can add into an automated step. Ideally pulling the full info. Spoke with Chris on this and will follow up with the team. Great workaround! <3
Looks like we only add these DT* variables for mobile platforms, not macOS.
The fix would likely be to move this chunk of code to code that's shared between iOS and macOS:
Lovely! I know macOS test flight is newer so maybe that is why we never did itt.
For Xcode 14.1, here are the values:
<key>DTPlatformBuild</key>
<string>14B47b</string>
<key>DTPlatformName</key>
<string>macosx</string>
<key>DTPlatformVersion</key>
<string>13.0</string>
<key>DTSDKBuild</key>
<string>22A372</string>
<key>DTSDKName</key>
<string>macosx13.0</string>
<key>DTXcode</key>
<string>1410</string>
<key>DTXcodeBuild</key>
<string>14B47b</string>
And for Xcode 14.2:
<key>DTPlatformBuild</key>
<string>14C18</string>
<key>DTPlatformName</key>
<string>macosx</string>
<key>DTPlatformVersion</key>
<string>13.1</string>
<key>DTSDKBuild</key>
<string>22C55</string>
<key>DTSDKName</key>
<string>macosx13.1</string>
<key>DTXcode</key>
<string>1420</string>
<key>DTXcodeBuild</key>
<string>14C18</string>
Hey @rolfbjarne , seems me and @Redth can reproduce this using .net8 and XCode 14.3.1 and XCode 15
We hit this when pushing to TestFlight external users
Here's my values:
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>15A507</string>
<key>DTPlatformName</key>
<string>maccatalyst</string>
<key>DTPlatformVersion</key>
<string>14.0</string>
<key>DTSDKBuild</key>
<string>23C64</string>
<key>DTSDKName</key>
<string>macosx14.0</string>
<key>DTXcode</key>
<string>1500</string>
<key>DTXcodeBuild</key>
<string>15A507</string>
<key>LSMinimumSystemVersion</key>
<string>11.0</string>
<key>UIDeviceFamily</key>
<array>
<integer>2</integer>
</array>
I see the same issue when I try to add an external testflight tester group.
@Redth can you send me your .ipa?
@Redth @rmarinho can you try if adding this to your Info.plist fixes it:
<key>DTSDKBuild</key>
<string>23A334</string>
That should match the value in Xcode 15.0.1
If it doesn't, please send me the ipa/pkg.
@rolfbjarne that works!
Why was the other value making it into the Info.plist to begin with? I have 15.0.1 installed...
I've opened https://github.com/xamarin/xamarin-macios/issues/19733 to track this, since it's a different underlying cause than the one originally reported here.
Steps to Reproduce
Expected Behavior
Work
Actual Behavior
Dont't work. The error message in AppStore Connect is:
Here screenshot in german when I add a tester group:
Note: The internal test works. I also removed all xcode beta and checked the selected xcode:
Environment
Build Logs
Example Project (If Possible)