Old Driver iOS Weekly #241 | 2023-04-17

Original link: https://github.com/SwiftOldDriver/iOS-Weekly/releases/tag/%23241

ios-weekly

The old driver’s iOS weekly report only presents valuable information for you.

You can also contribute to this project. If you find valuable information, articles, tools, etc., you can submit them to us in Issues , and we will deal with them as soon as possible. Remember to write down the reason for the recommendation. Suggestions and comments are also welcome to Issues .

news

Xcode 14.3: App built is not able to open on iOS 13.6

Some developers in the Apple Forum reported that the package produced by Xcode 14.3 cannot be started on some systems of iOS 13, and the error is reported in dyld3/Loading.cpp : Termination Description: DYLD, Assertion failed: (gotLocation), function applyFixupsToImage_block_invoke_3 , for compatibility with iOS 13 students, this Xcode upgrade can wait and see for a while.

article

?? Some miscellaneous topics about development – testing

@JonyFang : Introduces how developers test when writing code, and the importance of testing for software quality and development speed. It first explains the concept and types of testing, and then discusses in detail the differences between unit testing and integration testing and how to use them to ensure code quality. Then, the benefits of testing are emphasized, such as avoiding code regression, improving code readability and maintainability, etc. Finally, some practical testing tools and techniques are shared, including test coverage, assertions, mocking, and continuous integration. The entire article is a great reference for developers who want to improve code quality. Overall content structure:

  1. Why write tests? Will you write tests for the project and code?
    • what to test
    • not testing anything
  2. Testing styles and testing frameworks
    • BDD, TDD or whatever?
    • About the application of AI in testing
    • Testing for Apple platforms, XCTest and other frameworks
    • Unit Test, Feature Test and UI Test
  3. Ways to improve test quality
    • Injection, mocks and stubs
    • use pure functions

? What are we talking about when we say plugin system

@kyo : This article is actually a front-end article. The plug-in system mentioned in the article is not the plug-in of Android, which can be understood as similar to the componentization we often say. When we see similar nouns, such as plug-ins, components, modules, etc., they all divide the responsibilities of the software system to achieve the purpose of reducing engineering complexity and improving maintainability. And the core of the software architecture we often talk about is how to disassemble and add components. Therefore, don’t think these terms are very deep, but they are actually the essence of the system architecture.

? macOS Network Metrics Using sysctl :

@笑笑饮食食: On macOS, if you observe the network throughput of the system, you can use sysctl() with NET_RT_IFLIST2: This provides access to 64-bit indicators, which will not be affected by the overflow of the 32-bit field of the old API, and the obtained Metrics are also not affected by truncation.

? iOS ReplayKit and Screen Recording

@Smalfly : ReplayKit is a screen recording framework provided by the iOS system. With the iteration of the system, from the initial support for in-app recording to system screen recording, and then to Loop Buffer scrolling clips, the functions are constantly increasing. This article introduces the practice of cloud music LOOK live recording scene, mainly including Extension and host App functions, as well as the communication between the two. In addition, it also introduces how to protect user privacy during screen recording and solve the challenge of Extension 50 M memory limit.

? [Open source recommendation] ProcMon on macOS: Red Canary Mac Monitor

@Cooper Chen : Developers who are familiar with Window desktop development are familiar with SysInternals Suite. This is a tool software for researching vulnerability mining or red-blue confrontation. For many years, macOS has rarely had comparable software. Today I will introduce the Red Canary Mac Monitor from the security company Red Canary, Inc., which is functionally similar to Windows’ SysMon. Based on the system’s Endpoint Security framework, it can record events such as file reading and writing, process creation, etc. This is very useful for Mac developers. Good reference value.

? The Power Of Plist

@J_Knight_ : This article introduces some functions of plist, such as controlling which operating systems the product should run on (the corresponding key is LSMinimumSystemVersion), and it also allows developers to consider which architecture of the application for a specific operating system (the corresponding key is LSArchitecturePriority ). It also describes the mechanism by which plists are embedded into the app’s binary.

? When Matched Geometry Effect Doesn’t Work

@AidenRao : This post shows how to use the matchedGeometryEffect in SwiftUI to make the position, size, and shape of different views transition smoothly when transitioning between them.

tool

OrbStack

@康Ben : OrbStack is a tool that can quickly run Docker containers and Linux virtual machines on macOS, with low resource usage, high bandwidth, and fast speed. It has two main functions: replacing Docker Desktop and replacing Linux virtual machines. As shown on the official website, compared with Docker Desktop, the data has significantly improved in terms of startup speed, CPU, Network, and Memory. Students in need can try it out, it’s currently free.

the code

lexical-ios

@kyo : Meta has recently open sourced a rich text editor, which still uses JS. Compared with other rich text editors, lexical-ios has the advantages of light weight and high scalability. It encapsulates the editor’s UI panel, toolbar, and markdown capabilities into a form similar to components, which is convenient for callers Expand freely. For specific usage, please refer to the official document Lexical Documents .

Moyu Weekly

@探鱼周报#90 : The 90th issue of Moyu Weekly is here, let’s take a look at the summary of this issue:

  • Topic of this issue: Xcode 14.1 must be used to build and submit apps starting April 25
  • Content recommendation: Recommend some recent excellent blog posts, covering: custom Swift Toolchain, software testing, AI application, Dark Sky design experience, etc.
  • Touch the fish: Auto-GPT, a task-oriented GPT project; integrate the GPT model into the simulation role; integrate AI into the design process; Xcode version of the Copilot plug-in

Introduce

Restarted to update the “iOS Reliable Internal Recommendation Topic”, and sorted out the positions that have been clearly recruited recently for your reference

For specific information, please go to: https://www.yuque.com/ioalliance/article/bhutav to view (if you have any recruitment needs, please contact iTDriverr)

Follow us

We are “Old Driver Technology Weekly”, a technical public account that continues to pursue high-quality iOS content, welcome to pay attention.

Follow politely, pay attention to [Old Driver Technology Weekly], reply to “2021”, and receive 2017/2018/2019/2020 internal reference

It also supports RSS feeds: https://github.com/SwiftOldDriver/iOS-Weekly/releases.atom .

illustrate

? Indicates that a tool is needed, ? indicates an editor’s recommendation

Estimated reading time: ? Can be read quickly (1 – 10 mins); ? Moderate (10 – 20 mins); ? Slow (20+ mins)

This article is transferred from: https://github.com/SwiftOldDriver/iOS-Weekly/releases/tag/%23241
This site is only for collection, and the copyright belongs to the original author.