CN113626014A - Plug-in implementation method based on Xcode - Google Patents

Plug-in implementation method based on Xcode Download PDF

Info

Publication number
CN113626014A
CN113626014A CN202110907407.2A CN202110907407A CN113626014A CN 113626014 A CN113626014 A CN 113626014A CN 202110907407 A CN202110907407 A CN 202110907407A CN 113626014 A CN113626014 A CN 113626014A
Authority
CN
China
Prior art keywords
plug
platform
xcode
folder
script
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110907407.2A
Other languages
Chinese (zh)
Inventor
游辉
唐光宇
闫乃永
卢学明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Baobao Bus Co ltd
Original Assignee
Baobao Bus Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Baobao Bus Co ltd filed Critical Baobao Bus Co ltd
Priority to CN202110907407.2A priority Critical patent/CN113626014A/en
Publication of CN113626014A publication Critical patent/CN113626014A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation

Abstract

The invention provides a plug-in implementation method based on Xcode, which is characterized in that a preset script is inserted and executed during the compiling of a plug-in platform, the preset script is used for copying all scripts under the plug-in platform into an appointed folder, and the folder authority is configured to be executable; and the plug-in platform receives and processes the data, transmits the processed data to a corresponding script in the folder, realizes the function of plug-in, can freely add various functional extensions to the Xcode, and realizes the function of executing the script.

Description

Plug-in implementation method based on Xcode
Technical Field
The invention relates to the technical field of computers, in particular to a plug-in implementation method based on Xcode.
Background
When Xcode is used for development, in order to provide better development experience for developers, various extension functions, apple company has introduced Xcode Source Editor, and plug-in extension can be added to Xcode. However, the technology has very limited capability, is limited to the operation of the current file, and cannot provide extension of other functions. The following disadvantages are summarized.
1. The plug-in can only modify the current encoded file;
2. no ability to freely execute scripts;
3. other special functions such as clearing the Xcode cache cannot be added.
Disclosure of Invention
Technical problem to be solved
In order to solve the above problems in the prior art, the present invention provides a plug-in implementation method based on Xcode, which can freely add various function extensions to the Xcode and implement the function of executing a script.
(II) technical scheme
In order to achieve the purpose, the invention adopts the technical scheme that:
a plug-in implementation method based on Xcode comprises the following steps:
s1, inserting and executing a preset script during the compiling of the plug-in platform, wherein the preset script is used for copying all scripts under the plug-in platform into an appointed folder and configuring the folder authority to be executable;
and S2, the plug-in platform receives and processes the data, and transmits the processed data to the corresponding script in the folder to realize the function of plug-in.
(III) advantageous effects
The invention has the beneficial effects that: inserting and executing a preset script during the compiling of the plug-in platform, wherein the preset script is used for copying all scripts under the plug-in platform into an appointed folder and configuring the folder authority to be executable; and the plug-in platform receives and processes the data, transmits the processed data to a corresponding script in the folder, realizes the function of plug-in, can freely add various functional extensions to the Xcode, and realizes the function of executing the script.
Drawings
Fig. 1 is a flowchart of a plug-in implementation method based on Xcode according to an embodiment of the present invention.
Detailed Description
For the purpose of better explaining the present invention and to facilitate understanding, the present invention will be described in detail by way of specific embodiments with reference to the accompanying drawings.
Example one
Referring to fig. 1, a plug-in implementation method based on Xcode includes the steps:
s1, inserting and executing a preset script during the compiling of the plug-in platform, wherein the preset script is used for copying all scripts under the plug-in platform into an appointed folder and configuring the folder authority to be executable;
and S2, the plug-in platform receives and processes the data, and transmits the processed data to the corresponding script in the folder to realize the function of plug-in.
Further comprising the steps of:
and the plug-in platform uniformly packages the APIs of the Shell, Python and AppleScript scripts.
The plug-in platform receiving and processing data comprises:
and analyzing the received data, filtering out invalid identifications, and analyzing into an array or a dictionary which can be directly used.
Example two
The difference between the present embodiment and the first embodiment is that the present embodiment further illustrates how the above plug-in implementation method based on Xcode is implemented in combination with a specific application scenario:
1. inserting and executing a preset script during the compiling of the plug-in platform, wherein the preset script is used for copying all scripts under the plug-in platform into a designated folder and configuring the folder authority to be executable, so that the problem that the project directory does not have the execution step authority is avoided, and all scripts under the file have the executable authority;
2. and the plug-in platform receives and processes the data, and transmits the processed data to a corresponding script in the folder to realize the function of plug-in.
Further comprising the steps of:
and the plug-in platform uniformly packages the APIs of the Shell, Python and AppleScript scripts.
For example, calling an appleScript script, encapsulating a heavy API of the system, providing a standard API to the outside, and reducing the number of entries and codes;
the plug-in platform receiving and processing data comprises:
and analyzing the received data, filtering out invalid identifications, and analyzing into an array or a dictionary which can be directly used.
3. Each plug-in the folder calls the API to execute the corresponding script through the script execution capability provided by the platform to acquire required data, such as an engineering directory address, a current file path and the like
4. And each plug-in the folder can conveniently and comprehensively realize expected functions according to the received processed data and the script execution capacity given by the platform.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all equivalent changes made by using the contents of the present specification and the drawings, or applied directly or indirectly to the related technical fields, are included in the scope of the present invention.

Claims (3)

1. A plug-in implementation method based on Xcode is characterized by comprising the following steps:
s1, inserting and executing a preset script during the compiling of the plug-in platform, wherein the preset script is used for copying all scripts under the plug-in platform into an appointed folder and configuring the folder authority to be executable;
and S2, the plug-in platform receives and processes the data, and transmits the processed data to the corresponding script in the folder to realize the function of plug-in.
2. The Xcode-based plug-in implementation method according to claim 1, further comprising the steps of:
and the plug-in platform uniformly packages the APIs of the Shell, Python and AppleScript scripts.
3. The method for implementing Xcode-based plug-in implementation according to claim 1, wherein the plug-in platform receiving data for processing comprises:
and analyzing the received data, filtering out invalid identifications, and analyzing into an array or a dictionary which can be directly used.
CN202110907407.2A 2021-08-09 2021-08-09 Plug-in implementation method based on Xcode Pending CN113626014A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110907407.2A CN113626014A (en) 2021-08-09 2021-08-09 Plug-in implementation method based on Xcode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110907407.2A CN113626014A (en) 2021-08-09 2021-08-09 Plug-in implementation method based on Xcode

Publications (1)

Publication Number Publication Date
CN113626014A true CN113626014A (en) 2021-11-09

Family

ID=78383597

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110907407.2A Pending CN113626014A (en) 2021-08-09 2021-08-09 Plug-in implementation method based on Xcode

Country Status (1)

Country Link
CN (1) CN113626014A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106873977A (en) * 2016-12-30 2017-06-20 南京埃斯顿机器人工程有限公司 A kind of expansible robot demonstrator based on script and plug-in unit
WO2017124952A1 (en) * 2016-01-21 2017-07-27 阿里巴巴集团控股有限公司 Webpage script loading method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017124952A1 (en) * 2016-01-21 2017-07-27 阿里巴巴集团控股有限公司 Webpage script loading method and device
CN106873977A (en) * 2016-12-30 2017-06-20 南京埃斯顿机器人工程有限公司 A kind of expansible robot demonstrator based on script and plug-in unit

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈显鹭 等, 机械工业出版社 *

Similar Documents

Publication Publication Date Title
US7917913B2 (en) Injecting proxy components using blueprints
CN107092488B (en) Method and system for realizing non-invasive point burying of application
US9760583B2 (en) Method for native program to inherit same transaction context when invoked by primary program running in separate environment
CN106775781B (en) Method and device for reducing application installation packages and electronic equipment
CN107402792B (en) Integration method, device, equipment and storage medium of application software installation package
CN111506368B (en) Method, device, equipment and storage medium for converting asynchronous call into synchronous call
CN110609687A (en) Compiling method, device, electronic equipment and storage medium
CN111209001A (en) Method, system, equipment and medium for batch generation of APKs of android channels
CN108920358B (en) Message bus routing table generation method and device, storage medium and electronic equipment
CN113626014A (en) Plug-in implementation method based on Xcode
CN109189591B (en) Method and device for calling application component
CN112988175A (en) Cross-platform application installation package generation method, device, medium and electronic equipment
CN113709171B (en) Method and device for cross-component state communication
CN108920144B (en) Message processing method and device
CN112162755B (en) Data processing method, device, medium and electronic equipment
CN111045746A (en) Code expansion method and framework
CN114840195A (en) Privatization method for iOS SDK static library
CN114625373A (en) Application conversion method and device, electronic equipment and storage medium
CN109284112B (en) Method and device for running application program
US20180218165A1 (en) Method for Locking Sensitive Data in the Cloud Based on Refactoring Technology
CN107463438B (en) Information processing method, device and system for multi-Openstack environment
CN111708519A (en) Business component processing method, device, equipment and storage medium
CN108196900B (en) Component registration method and device
US11768667B2 (en) Compiling method, compiling device, execution method, computer-readable storage medium and computer device
CN113835748B (en) Packaging method, system and readable medium for application program based on HTML5

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20211109