The programmer’s job is to remove bugs

The program’s job is to tell bugs

My job is to keep track of bugs

The solution

Upgrading cocoaPods to 1.11.0 and above puts the solution first. The following is just for the record, so don’t waste your time.

One, puzzling

Due to the number of issues with Xcode13, the minimum support version was compromised from iOS10 to iOS11 in order to solve the bugs in Xcode. When Xcode was updated to 13.1, I was very happy to update it at the first time. I thought the BUG should be fixed and improved my MBP15 experience. After the Xcode upgrade, the emulator runs normally, but when the real machine is debugged, it will be… It starts up with an error, and then a bunch of errors

dyld[1537]: Library not loaded: @rpath/App.framework/App Referenced from: /private/var/containers/Bundle/Application/23534E07-8693-4253-A18D-40402132D5F6/service.app/service Reason: tried: '/usr/lib/swift/App.framework/App' (no such file), '/private/var/containers/Bundle/Application/23534E07-8693-4253-A18D-40402132D5F6/service.app/Frameworks/App.framework/Ap p' (no such file), '/private/var/containers/Bundle/Application/23534E07-8693-4253-A18D-40402132D5F6/service.app/Frameworks/App.framework/Ap p' (no such file), '/private/var/containers/Bundle/Application/23534E07-8693-4253-A18D-40402132D5F6/service.app/Frameworks/App.framework/Ap p' (no such file), '/usr/lib/swift/App.framework/App' (no such file), '/private/var/containers/Bundle/Application/23534E07-8693-4253-A18D-40402132D5F6/service.app/Frameworks/App.framework/Ap p' (no such file), '/private/var/containers/Bundle/Application/23534E07-8693-4253-A18D-40402132D5F6/service.app/Frameworks/App.framework/Ap p' (no such file), '/private/var/containers/Bundle/Application/23534E07-8693-4253-A18D-40402132D5F6/service.app/Frameworks/App.framework/Ap p' (no such file), '/System/Library/Frameworks/App.framework/App' (no such file) Library not loaded: @rpath/App.framework/App Referenced from: /private/var/containers/Bundle/Application/23534E07-8693-4253-A18D-40402132D5F6/service.app/service Reason: tried: '/usr/lib/swift/App.framework/App' (no such file), '/private/var/containers/Bundle/Application/23534E07-8693-4253-A18D-40402132D5F6/service.app/Frameworks/App.framework/Ap p' (no such file), '/private/var/containers/Bundle/Application/23534E07-8693-4253-A18D-40402132D5F6/service.app/Frameworks/App.framework/Ap p' (no such file), '/private/var/containers/Bundle/Application/23534E07-8693-4253-A18D-40402132D5F6/service.app/Frameworks/App.framework/Ap p' (no such file), '/usr/lib/swift/App.framework/App' (no such file), '/private/var/containers/Bundle/Application/23534E07-8693-4253-A18D-40402132D5F6/service.app/Frameworks/App.framework/Ap p' (no such file), '/private/var/containers/Bundle/Application/23534E07-8693-4253-A18D-40402132D5F6/service.app/Frameworks/App.framework/Ap p' (no such file), '/private/var/containers/Bundle/Application/2Copy the code

Second, the thinking

See this error, the first reaction was’/usr/lib/App/swift. The framework/App ‘, because I can’t find the swift after the upgrade Xcode version are not compatible? There is something wrong with the configuration of Swift. /usr/lib/swif/app.framework. What a question. All kinds of Baidu, all kinds of Bing… There is no solution to the problem. After a miserable day, I had to bow to reality. I throw in the towel. Xcode13 has been downloaded again. I cried, just wetting my dry eyes from staring at the screen. Xcode13 is running fine. Fruit Company, I’ll take it.

Third, seek solutions

After the version of the online, or think there is a problem to solve the problem, no problem to create problems, be sure to brush their own sense of existence. After upgrading Xcode13.1, various analyses, various configurations, various attempts. One light year is omitted here. Finally chose the most correct path, over the wall. Let’s see if there’s a solution behind the wall. Surreptitiously open gu Elder brother, gently narrate my unspeakable secret. Brother, it really is 666. The elixir is here. That’s what I’ve been looking for. Inspired, suddenly see the light.

Iv. Solutions

Full address github.com/flutter/flu… Because the Pods-**-frameworks. Sh “${PODS_ROOT}/.. /.. /.. /.. / Flutter, Flutter/ios/Flutter/App. The framework “. Yes, the App. Framework that cannot be found must belong to Flutter, not swift. What a surprise.

Problem disappeared after upgrading 'cocoapods' to 1.11.0 and' ruby-macho 'to 2.5.1\.see [CocoaPods/CocoaPods#10390](https://github.com/CocoaPods/CocoaPods/issues/10390)Copy the code

The final solution is to upgrade CocoaPods to the latest version and then pod Install. Everything can play happily again.

Five, the Google

You say such a good brother, why must climb the wall to see.

// END to learn English well, can pretend B.