Net Framework 4.0 3019 Error Fix

0 views
Skip to first unread message

Reggie Lamborn

unread,
Aug 3, 2024, 11:22:08 AM8/3/24
to chicquetohou

I'm working with the new 5.3 tools using Xcode 12 beta3 to create a library SwiftPM package. This library depends on another SwiftPM package that wraps a binary static xcframework defined as a binaryTarget. When I link to an application and try to run it on device, it fails to install with a no code signature found error. Before including the new library the application installed and ran on device fine so I'm assuming that this comes from the new library. The SwiftPM library package builds and tests just fine so I'm assuming that its the package for the xcframework that is introducing the issue. Since code signing doesn't seem to be addressed yet, is this just something that cannot be done at this time?

I'm working on a reproducible case. But as I did so I found out additional information. It isn't just adding the binaryTarget SwiftPM package dependency that is required to see the issue. It is the combination of the binaryTarget package and linking a binary framework (old style .framework, not .xcframework and not available as .xcframework yet sadly) that causes the problem. I've also reproduced the issue with other .frameworks, so it doesn't seem to be one specific framework that is causing the issue.

Additional issue/bug report filed here: [SR-13345] SwiftPM project with binaryTarget providing dynamic xcframework fails on devices Issue #4514 apple/swift-package-manager GitHub
Providing dynamic xcframeworks via SwiftPM binaryTarget packages also fail to execute on devices. The dynamic library is not found.

Comparing to manual installation of the framework, I see the same error when Xcode's Embed Settings are set to "Embed without signing".
Is there a way with the package manager to achieve the equivalent of setting "Embed & Sign"?

Kyle I'm also having Code: -402620388 No code signature found error on Xcode 12 GM too, and I've tried literally every combination I can think of, stripping out multiple frameworks from both SPM and Carthage. Do you have any advice on how to figure out which framework/app extension is the culprit?

Firebase! I just switched them from Carthage to Swift Package Manager as part of our upgrade to Xcode 12. I will try reverting back to Carthage (which ironically is also very broken: ) and see if deploying to device resolves.

Also confirmed that Swift Package manager is still broken with Xcode 12 GM, with dynamic frameworks in particular.
@NeoNacho is there any sense of when Swift PM is going to support XCFrameworks with Dynamic libraries?

The static framework issue seems to be related to Xcode 12 requiring an arm64 simulator slice. Xcode building for iOS Simulator, but linking in an object file built for iOS, for architecture 'arm64' - Stack Overflow is a workaround.

Update on the dynamic frameworks -
I succeeded in installing and deploying an unsigned version of our dynamic XCFramework into an app.
We usually code sign the library using a distribution certificate, and the signed version of the library produces an error on deployment: [SR-13366] Package Manager fails to install XCFrameworks with Dynamic Library Issue #4511 apple/swift-package-manager GitHub.

We've been code signing but also recommended that integrators use the "Embed & Sign" Embed setting when linking the framework to their project.
Does SPM have an expectation on the code signature of XCFrameworks?
(c.c. @NeoNacho)

I was finally able to bypass this No code signature found issue. As the last build phase, I have added a script which signs the frameworks inside the compiled app, meaning all frameworks inside $CODESIGNING_FOLDER_PATH/Frameworks. Unfortunately, I can't share my script since it is based on a codesign.py file which SAP published as part of their proprietary SAP Cloud Platform SDK 5.0 (Version 5.0 of CP SDK for iOS Released SAP Blogs). Without googling, I guess there are a few more scripts available out there for the same purpose .

Hello! I'm really new here but I'm hoping I can get some help here. I have an HP Pavilion 17 Notebook PC and I've had it since 2014. Within the past 3 months, I've started to get these notifications on my computer that say "This application requires one of the versions of the .NET Framework : v4.0.30319. Do you want to install this .NET Framework version now?" And every time I agree to download the newest version, it will start downloading and give me the following error. "Your installation will not occur. See below for reasons why." and below it says ".NET Framework 4.8 or a later update is already installed on this computer." The programs it's referring to for the .NET framework update are for Avira (my anti-virus) and HPWarrantyChecker.exe. And because it's not letting me download any new versions, I keep on getting these pop-ups on my computer requesting the update every five minutes and I just have to keep on closing them because there's nothing it will let me do except keep on cancelling the download. Can anyone please help me with this? It's getting really annoying having to close out these update requests every five minutes. Thank you!

So starting with your first suggestion, I saw that >net Framework was not full turned on (the check boxes next to them were only filled in but not checked) so I adjusted them so they were both checked and restarted my computer. The problem still persisted so I went onto your next suggestion.

So I went to see if I could try repairing it. I looked through the entire list of programs on my computer to try and find Microsoft .NET Framework and it was nowhere to be seen on that list. I even tried searching it to uninstall it and nothing pulled up so I wasn't able to repair it. I moved on over to your third suggestion.

I checked for updates for my computer and there was one that actually mentioned .NET Framework. I downloaded the update and updated my computer. The problem is still here. Still the same pop-ups and now it's asking about yet another program called HPCEE.exe and its need for a .NET Framework update. Any other suggestions? Thanks again for your suggestions! I would appreciate more!

With this conceptual picture, the next step is to quantify the growth of the errors under a simple analytical framework. As a tool to help our understanding of complex and chaotic nonlinear interaction, simple analytic equations have been used along with the earlier numeric studies on error growth dynamics. Lorenz (1982) showed that the growth of error variance E could be reasonably well parameterized by a simple exponential growth equation. Dalcher and Kalnay (1987) proposed a modified version based on Lorenz (1982) to describe the evolution of the error variance E:

by introducing an external error source S. This equation is adopted and widely used in studies of forecast uncertainty of operational weather prediction (e.g., Magnusson and Klln 2013; Herrera et al. 2016; Žagar et al. 2017). However, very limited analytical work focused on the intrinsic predictability limit of weather systems where the external error source is eliminated.

Figure 2 depicts the error growth in different experiments using the 2DV equation under different initial-condition errors. For each experiment, the initial error distribution is set so that the error field is limited to the small scales only. No initial error is added to the spectral bands that have larger length scales than the cutoff spectral band K (cutoff K in Fig. 2a).2 For length scales equal to or smaller than spectral band K, their initial-error amplitudes are set to their saturation values. Increased K means that the initial error is pushed to smaller scales, and thus its amplitude is exponentially reduced. We can find that, as the cutoff K increases (initial error reduces exponentially), the time needed for the error to saturate at large scales increases linearly (Fig. 2b). Therefore, if we could keep reducing the initial error to smaller and smaller scales, we could keep increasing the error saturation time at large scales without any limitation.

assuming α is the error growth rate. The error doubling time τD can be then calculated to be τD = ln(2)/α, inversely proportional to the error growth rate α. From the turbulence perspective, the scale-dependent error doubling time τD(k) is comparable to the eddy turnover time τk. Time τk is a characteristic time scale that is defined as the time taken for a parcel with velocity υk to move a distance 1/k, with υk being the velocity associated with the (inverse) scale k. Time τk can be estimated from the spectral energy density E(k) (e.g., see Vallis 2006, p. 349),

To include the error saturation effect at later times, we could also add an additional term as in Durran and Gingrich (2014) to force the time tendency of Ztotal2DV to decrease smoothly to 0 as Ztotal2DV approaches its saturation threshold Zsat2DV. With this adjustment, Eq. (5) becomes

Figure 3c further verifies that Eq. (8), which simply provides an estimation for the error saturation time, might not be a bad approximation for the original numerical solution of SQG-like error dynamics in Eq. (2).

which is a combination of the two ODEs in Eq. (2) and could be solved numerically as before. We should note here that the nonlinear saturation adjustment, as in Durran and Gingrich (2014), is also added to Eq. (9) when solving this equation. More details on this can be found in appendix A. Due to this additional nonlinear saturation effect, the hybrid model of Eq. (9) cannot be linearly decoupled as the summation of a solution to the SQG-like system and a solution to the 2DV-like system.

In light of Eqs. (4) and (22), if the canonical atmospheric kinetic energy spectrum E(k) is known to us, then we can directly estimate the error growth behavior of the system using the analytical Eq. (14) proposed above, the parameter of this analytical equation can be calculated as follows:

To sum up, this simple analytical framework that we show is consistent with the error growth scenario described in Fig. 1. This framework is also well connected to the background kinetic energy spectrum. All parameters in the analytical error growth model can be directly estimated from the energy spectrum of the background flow [Eq. (23)].

c80f0f1006
Reply all
Reply to author
Forward
0 new messages