Method and plug-in for automatically detecting protocol unimplemented function based on Xcode

A technology for automatic detection and realization of functions, applied in software engineering design, electrical digital data processing, instruments, etc., can solve problems such as inability to intuitively acquire protocols and optional protocols, inability to efficiently acquire protocols, and prone to errors, etc. Good code readability, reducing trial and error and maintenance costs, and saving development costs

Pending Publication Date: 2022-04-26
宝宝巴士股份有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] 1. When multiple projects are docking with different versions of the agreement, it is impossible to efficiently obtain the agreement that needs to be implemented at present;
[0005] 2. It is impossible to intuitively obtain the protocols that must be implemented and the optional protocols;
[0006] 3. The unrealized protocol can also be obtained through the comparison of documents and codes during development, but it is time-consuming and prone to errors

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and plug-in for automatically detecting protocol unimplemented function based on Xcode

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0025] Please refer to figure 1 , based on Xcode automatic detection protocol unimplemented function method, including steps:

[0026] S1. Obtain the configuration file of the Xcode project currently in the foreground;

[0027] Step S1 is specifically:

[0028] Obtain the configuration file of the Xcode project currently in the foreground through an AppleScript script.

[0029] The configuration file is to directly specify a list of protocol names to be detected, to specify a directory to be detected, or to traverse all subdirectories recursively.

[0030] S2. Perform analysis according to the configuration file to obtain all class and protocol data of the project;

[0031] Step S2 is specifically:

[0032] S21. Receive the binary file directory to be compiled and output specified by the user according to the configuration file;

[0033] S22. Parse the binary file according to the binary file directory to obtain all class and protocol data of the project.

[0034] S3. Ca...

Embodiment 2

[0040] The difference between this embodiment and Embodiment 1 is that this embodiment will further illustrate how the above-mentioned method based on the Xcode automatic detection protocol unrealized function of the present invention is implemented in combination with specific application scenarios:

[0041] Early preparation:

[0042] 1. Download and install the plug-in on the Mac system, and check the plug-in in Settings-Extensions to authorize the use of the plug-in;

[0043] 2. Set a custom shortcut key for the plug-in in the Xcode compiler to quickly invoke the plug-in;

[0044] 3. Add a configuration file to the project. The configuration file directly specifies the list of protocol names to be detected, specifies the directory to be detected, or recursively traverses all protocols in all subdirectories.

[0045] Implementation:

[0046] 1. Actively trigger the plug-in through shortcut keys or buttons;

[0047] 2. The plug-in obtains the configuration file of the Xco...

Embodiment 3

[0055] A plug-in that does not implement a function based on Xcode automatic detection protocol, and the plug-in implements each step in the first embodiment.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method for automatically detecting a protocol unimplemented function based on Xcode and a plug-in. The method comprises the following steps: acquiring a configuration file of an Xcode project currently located in a foreground; analyzing according to the configuration file to obtain all classes and protocol data of a project; the unrealized protocol function array is calculated according to all classes and protocol data, and is output in a JSON format, so that the unrealized protocol functions are automatically detected, the method is efficient and time-saving, the development cost is saved, the functions missed by human factors are reduced, the trial and error and maintenance cost is reduced, the accuracy is high, the protocol functions are uniformly stored in a specified area, and the method is suitable for large-scale popularization and application. Codes can be checked and modified conveniently, the maintenance difficulty is lowered, the maintenance time is shortened, and good code readability is achieved.

Description

technical field [0001] The invention relates to the technical field of computer software, in particular to a method and plug-in for unrealized functions based on an Xcode automatic detection protocol. Background technique [0002] In iOS application development, protocol-oriented development is favored by developers for its low coupling, high readability, and easy expansion. It occupies an important position in componentized team development. [0003] However, the number of protocols has been increasing in the continuous version iteration of App. Some of these protocols must be implemented, and some are optional. When the number of protocols expands to a certain level, even the original author of the code may not necessarily know which protocols are implemented and which protocols are not implemented. Not to mention the rest of the team who need access to these protocols. Furthermore, when multiple products need to be connected to different versions, it is even more diffi...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F8/30G06F8/41
CPCG06F8/427G06F8/37
Inventor 游辉唐光宇闫乃永卢学明
Owner 宝宝巴士股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products