CN117149207A - Method and system for realizing automatic formatting generation of frame work construction number through RunScript - Google Patents

Method and system for realizing automatic formatting generation of frame work construction number through RunScript Download PDF

Info

Publication number
CN117149207A
CN117149207A CN202310999952.8A CN202310999952A CN117149207A CN 117149207 A CN117149207 A CN 117149207A CN 202310999952 A CN202310999952 A CN 202310999952A CN 117149207 A CN117149207 A CN 117149207A
Authority
CN
China
Prior art keywords
frame work
frame
compiling
script
file
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
CN202310999952.8A
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.)
Fujian Tianqing Online Interactive Technology Co Ltd
Original Assignee
Fujian Tianqing Online Interactive Technology 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 Fujian Tianqing Online Interactive Technology Co Ltd filed Critical Fujian Tianqing Online Interactive Technology Co Ltd
Priority to CN202310999952.8A priority Critical patent/CN117149207A/en
Publication of CN117149207A publication Critical patent/CN117149207A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a method for realizing automatic formatting generation of a frame work construction number through RunScript, which comprises the following steps: step S1, generating or preparing a frame work library project for realizing automatic formatting generation of version numbers in advance; s2, selecting a designated frame Target in frame work library engineering, and switching to a Build phase tag; s3, generating a corresponding operation script frame RunScript in the frame Target; step S4, writing a corresponding script in an operation script framework, wherein the script realization content is a construction number for generating a specified format and is written into an info. Plist file; step S5, before moving the running script frame to the compiled file list company, ensuring that the version number is updated before compiling the library; s6, after the moving operation, compiling the corresponding frame work library, and waiting for outputting a result, wherein the construction number corresponding to the output frame work library is the construction number after automatic formatting generation; the content of the construction number can be automatically formatted and generated, and the error probability caused by the fact that the construction number is not updated is reduced.

Description

Method and system for realizing automatic formatting generation of frame work construction number through RunScript
Technical Field
The invention relates to the technical field of application development, in particular to a method and a system for realizing automatic formatting generation of a frame work construction number through RunScript.
Background
Xcode is an Integrated Development Environment (IDE) offered by apple corporation for developing macOS, iOS, iPadOS, watchOS and tvOS applications. It is one of the main tools for developing software on apple devices. In XCode Run Script is part of a Build Phase, which allows you to add custom scripts during project Build. This script may be Shell script, python script, ruby script, etc. for performing some additional operations during the build process. iOS is a mobile operating system developed by apple inc.
The Framework library means that in the application, some common codes are needed to be repeatedly used, and the codes are compiled into a library file; in the linking step, the connector will retrieve the required code from the library file and copy it to such library in the generated executable file.
In the framework development process, the corresponding construction number needs to be manually modified before each library generation, and the situation that the construction number is updated and missed is most likely to occur, so that multiple times of checking are needed, and the time and the labor are consumed.
Disclosure of Invention
In order to overcome the problems, the invention aims to provide a method for realizing automatic formatting generation of a frame work construction number through RunScript, which is used for realizing processing of an automatic formatting script, and can modify the construction number directly before compiling the frame work, so that the problems of omission and efficiency reduction caused by multiple inspections are avoided.
The invention is realized by adopting the following scheme: a method for implementing automatic formatting generation of frame work build numbers by RunScript, the method comprising the steps of: step S1, generating or preparing a frame work library project for realizing automatic formatting generation of version numbers in advance;
s2, selecting a designated building and compiling unit frame Target in frame work library engineering, and switching to a Build phase tag;
step S3, generating a corresponding running script frame RunScript in a building and compiling unit frame Target;
step S4, writing a corresponding script in an operation script framework, wherein the script realization content is a construction number for generating a specified format and writing the construction number into an info. Plist file, and the info. Plist file is used for managing version number information;
step S5, before moving the running script frame to the compiled file list company, ensuring that the version number is updated before compiling the library;
and S6, after the moving operation, compiling the corresponding frame work library, and waiting for outputting a result, wherein the construction number corresponding to the output frame work library is the construction number after automatic formatting generation.
Further, the step S3 is further specifically: the generated running Script frame Run Script is only Run in the current building and compiling unit frame work Target, and if the building numbers are required to be automatically formatted and generated simultaneously by different building and compiling units frame work Target, the running Script frame Run Script is required to be respectively generated and realized in different building and compiling units frame work Target.
Further, the step S4 is further specifically: s41, acquiring a file path of the current info. Plist by using the address of the info. Plist; s42, reading a version number set in a current info.plist file through a command line tool PlistBuddy; s43, acquiring a last generated construction number in the info. Plist file; s44, judging whether the format meets the requirement, wherein the format is composed of the current date and the construction times; s45, if the format meets the requirement, adding 1 to the construction times, otherwise setting the construction number as the formatted content plus the construction times; s46, writing the spliced construction number into an info.
Further, in step S5, the necessity of the operation is to complete the setting of the build number before the frame work library is generated, and since the content of the info. Plist file is automatically added into the frame work library after the frame work library is compiled, it is necessary to manually adjust the compiling sequence to avoid problems.
Further, the step S6 is further specifically: the frame work library generated by right clicking and clicking the popped display package content can enter the actual content of the package body, an info. Plist file exists in the package content, and CFBundleVersionString is the set construction number.
Further, the compiling in step S6 specifically includes:
s61, pretreatment: expanding macros and processing conditional compiling instructions;
s62, compiling: translating the source code into assembly language;
s63, assembling: translating the assembly code into a machine code to generate a target file;
s64, linking: combining the target files together, analyzing the references, and generating an executable file;
s65, code signature: ensuring application source and integrity;
s66, resource processing: processing resource files in the project, compiling and copying the resource files into an application program package;
s67, generating a Bundle: creating an application program Bundle comprising an executable file and a resource file;
s68, generating a frame file: and generating a corresponding library according to the requirement, wherein the building number corresponding to the output frame work library is the building number generated by automatic formatting.
The invention also provides a system for realizing automatic formatting generation of the frame work building number through RunScript, which comprises: the system comprises a frame work engineering preparation module, an environment preparation module, an operation script frame generation module, an automatic formatting script writing module, a compiling sequence adjustment module and an operation module;
the frame work preparation module is used for generating or preparing a frame work library project for realizing automatic format generation of the version number in advance;
the environment preparation module selects a designated building and compiling unit frame Target in frame work library engineering and switches to a Build phase tag;
the running script frame generation module generates a corresponding running script frame RunScript in a building and compiling unit frame Target;
the automatic formatting script writing module writes a corresponding script in an operation script frame, wherein script realization content is a construction number for generating a specified formatting and writing the construction number into an info. Plist file, and the info. Plist file is used for managing version number information;
the compiling sequence adjusting module moves the running script frame to the front of the compiled file list company to ensure that the version number is updated before compiling the library;
and after the operation module moves, compiling the corresponding frame work library, and waiting for outputting a result, wherein the construction number corresponding to the output frame work library is the construction number after automatic formatting generation.
Further, the running script frame generating module is further specifically: the generated running Script frame Run Script is only Run in the current building and compiling unit frame work Target, and if the building numbers are required to be automatically formatted and generated simultaneously by different building and compiling units frame work Target, the running Script frame Run Script is required to be respectively generated and realized in different building and compiling units frame work Target.
Further, the automatic formatting script writing module further specifically includes: s41, acquiring a file path of the current info. Plist by using the address of the info. Plist; s42, reading a version number set in a current info.plist file through a command line tool PlistBuddy; s43, acquiring a last generated construction number in the info. Plist file; s44, judging whether the format meets the requirement, wherein the format is composed of the current date and the construction times; s45, if the format meets the requirement, adding 1 to the construction times, otherwise setting the construction number as the formatted content plus the construction times; s46, writing the spliced construction number into an info.
Furthermore, in the compilation sequence adjustment module, the necessity of the operation is to complete the setting of the build number before the frame work library is generated, and since the content of the info. Plist file is automatically added into the frame work library after the frame work library is compiled, the compilation sequence needs to be manually adjusted to avoid problems.
Further, the operation module is further specifically: the frame work library generated by right clicking and clicking the popped display package content can enter the actual content of the package body, an info. Plist file exists in the package content, and CFBundleVersionString is the set construction number.
Further, the compiling in the operation module specifically includes:
s61, pretreatment: expanding macros and processing conditional compiling instructions;
s62, compiling: translating the source code into assembly language;
s63, assembling: translating the assembly code into a machine code to generate a target file;
s64, linking: combining the target files together, analyzing the references, and generating an executable file;
s65, code signature: ensuring application source and integrity;
s66, resource processing: processing resource files in the project, compiling and copying the resource files into an application program package;
s67, generating a Bundle: creating an application program Bundle comprising an executable file and a resource file;
s68, generating a frame file: and generating a corresponding library according to the requirement, wherein the building number corresponding to the output frame work library is the building number generated by automatic formatting.
The invention has the beneficial effects that: in the framework development process, if the building number needs to be manually modified before compiling each time, the method is time-consuming and labor-consuming, and the problem of omission easily occurs, and the situation of repeated checking and error avoidance possibly occurs, so that the efficiency is seriously affected. The invention enables the user to automatically format and generate the content of the construction number before compiling the frame work library, reduces the error probability of not updating the construction number, avoids multiple checks and improves the overall development efficiency.
Drawings
FIG. 1 is a schematic flow chart of the method of the present invention.
Fig. 2 is a schematic diagram of the system framework of the present invention.
Detailed Description
The invention is further described below with reference to the accompanying drawings.
Referring to fig. 1, the method for implementing automatic formatting generation of a frame work building number by RunScript according to the present invention includes the following steps: step S1, generating or preparing a frame work library project for realizing automatic formatting generation of version numbers in advance;
s2, selecting a designated building and compiling unit frame Target in frame work library engineering, and switching to a Build phase tag;
step S3, generating a corresponding running script frame RunScript in a building and compiling unit frame Target;
the step S3 is further specifically: the generated running Script frame (Run Script) is only Run at the current Target, and if different targets need to realize automatic format generation of the build numbers at the same time, the running Script frame (Run Script) needs to be respectively generated and realized in the different targets.
Step S4, writing a corresponding script in an operation script framework, wherein the script realization content is a construction number for generating a specified format and writing the construction number into an info. Plist file, and the info. Plist file is used for managing version number information;
the step S4 is further specifically: 1. obtaining a file path (information such as a management version number) of the current info.plist by using the SRCUOT/$ { PROJECT_NAME }/info plist; 2. reading a version number set in a current info.plist file through a command line tool PlistBuddy; 3. acquiring a last generated construction number 4 in the info. Plist file, and judging whether the format meets the requirement, for example, whether the format is composed of the current date and the construction times; 5. adding 1 to the number of construction times if the format meets the requirement, otherwise setting the construction number to be the formatted content plus the number of construction times, such as the current date plus 1;6. and writing the spliced construction number into the info.
Step S5, before moving the running script frame to the compiled file list company, ensuring that the version number is updated before compiling the library;
in step S5, the necessity of the operation is to complete the setting of the build number before the frame work library is generated, and since the content of info. Plist is automatically added to the frame work library after the frame work library is compiled, it is necessary to manually adjust the compiling order to avoid problems.
And S6, after the moving operation, compiling the corresponding frame work library, and waiting for outputting a result, wherein the construction number corresponding to the output frame work library is the construction number after automatic formatting generation.
The step S6 is further specifically: the frame work library generated by right clicking and clicking the popped display package content can enter the actual content of the package body, an info. Plist file exists in the package content, and CFBundleVersionString is the set construction number.
The compiling in the step S6 specifically includes:
s61, pretreatment: expanding macros and processing conditional compiling instructions;
s62, compiling: translating the source code into assembly language;
s63, assembling: translating the assembly code into a machine code to generate a target file;
s64, linking: combining the target files together, analyzing the references, and generating an executable file;
s65, code signature: ensuring application source and integrity;
s66, resource processing: processing resource files in the project, compiling and copying the resource files into an application program package;
s67, generating a Bundle: creating an application program Bundle comprising an executable file and a resource file;
s68, generating a frame file: and generating a corresponding library according to the requirement, wherein the building number corresponding to the output frame work library is the building number generated by automatic formatting.
The invention is further described with reference to the following specific examples:
the invention discloses a method for realizing automatic formatting generation of a frame work construction number through RunScript, which comprises the following steps: s1, generating or preparing a frame work library project for unit testing in advance;
for convenience of understanding, the frame work library in the example is named as a demoframe work, wherein the default info. Plist corresponds to a construction number of 1;
s2, clicking a target of a demo frame work library in Targets and clicking to enter a Build Phases tag page in engineering;
wherein the default content should be dependent on the target Target Dependencies, run build tool plug-ins Run Build Tool Plug-ins, compile source code company Sources, linked library Link Binary With Libraries, header files Headers, resources Copy Bundle Resources to be copied;
s3, clicking a + button at the upper left corner, clicking New Run Script Phase in the pop-up selection, and generating a Run Script at the lowest position by default, wherein in the example, only a single frame work is required to be processed, so that one is supplemented;
s4, writing a corresponding realization Script in the Run Script generated in the S3, wherein the formatting is normally used for better positioning related information when the user goes out of the library, and the common situation is that the current date and the construction times are similar to those of different configurations, for example, the application of different channels is distinguished and constructed, and the channel name and the construction times can be used, or the languages are different, and the language and the construction times are used; the date + build number in the example is set forth as formatted content;
#!/bin/bash
# get info.plist File Path
infoPlistPath="${SRCROOT}/${PROJECT_NAME}/info.plist"
# read current CFBundleShortVersionString (application version number)
currentVersion=$(/usr/libexec/PlistBuddy-c"Print CFBundleShortVersionString""$infoPlistPath")
# acquisition current date (year, month and day)
currentDate=$(date"+%Y%m%d")
# obtain the build number of the last build (if any)
lastBuildNumber=$(/usr/libexec/PlistBuddy-c"Print CFBundleVersion""$infoPlistPath")
# determine if it is the same day
if["$currentDate"-eq"${lastBuildNumber:0:8}"];then
# is the same day, add 1 to the number of constructs
buildNumber=$((10#${lastBuildNumber:8}+1))
else
# are not the same day, count from 1
buildNumber=1
fi
# generating a new application version number based on date and number of builds
newVersion="${currentVersion}.${currentDate}$(printf"%02d"$buildNumber)"
CFBundleShortVersionString and CFBundleBuildNTUMber in the Info.plist file
#/usr/libexec/PlistBuddy-c"Set:CFBundleShortVersionString$newVersion""$infoPlistPath"
/usr/libexec/PlistBuddy-c"Set:CFBundleVersion$newVersion""$infoPlistPath"。
S5, before the RunScript realized in S4 needs to be manually moved to a compiled file list Componence, in XCODE, the execution sequence of code compiling is carried out from top to bottom according to the Build phase label, so that the corresponding construction number information can be ensured to be modified before the code is actually compiled;
s6, after the step S5, compiling and running the target of the corresponding demoframe, after compiling is completed, finding out an output frame library, right clicking the frame to open the content of the packet, entering the packet, wherein the packet contains an info.plist file, namely corresponding configuration information, opening the info.plist, finding out the corresponding key CFBundleVersionString, and then determining whether the generated construction number is in a self-defined construction number format.
Referring to fig. 2, the present invention further provides a system for implementing automatic format generation of a frame work build number through RunScript, where the system includes: the system comprises a frame work engineering preparation module, an environment preparation module, an operation script frame generation module, an automatic formatting script writing module, a compiling sequence adjustment module and an operation module;
the frame work preparation module is used for generating or preparing a frame work library project for realizing automatic format generation of the version number in advance;
the environment preparation module selects a designated building and compiling unit frame Target in frame work library engineering and switches to a Build phase tag;
the running script frame generation module generates a corresponding running script frame RunScript in a building and compiling unit frame Target;
the running script frame generation module is further specifically: the generated running Script frame Run Script is only Run in the current building and compiling unit frame work Target, and if the building numbers are required to be automatically formatted and generated simultaneously by different building and compiling units frame work Target, the running Script frame Run Script is required to be respectively generated and realized in different building and compiling units frame work Target.
The automatic formatting script writing module writes a corresponding script in an operation script frame, wherein script realization content is a construction number for generating a specified formatting and writing the construction number into an info. Plist file, and the info. Plist file is used for managing version number information;
the automatic formatting script writing module is further specifically: s41, acquiring a file path of the current info. Plist by using the address of the info. Plist; s42, reading a version number set in a current info.plist file through a command line tool PlistBuddy; s43, acquiring a last generated construction number in the info. Plist file; s44, judging whether the format meets the requirement, wherein the format is composed of the current date and the construction times; s45, if the format meets the requirement, adding 1 to the construction times, otherwise setting the construction number as the formatted content plus the construction times; s46, writing the spliced construction number into an info.
The compiling sequence adjusting module moves the running script frame to the front of the compiled file list company to ensure that the version number is updated before compiling the library;
in the compiling sequence adjusting module, the necessity of the operation is to complete the setting of the building number before the frame work library is generated, and since the content of the info. Plist file is automatically added into the frame work library after the frame work library is compiled, the compiling sequence needs to be manually adjusted to avoid problems.
And after the operation module moves, compiling the corresponding frame work library, and waiting for outputting a result, wherein the construction number corresponding to the output frame work library is the construction number after automatic formatting generation.
The operation module is further specifically: the frame work library generated by right clicking and clicking the popped display package content can enter the actual content of the package body, an info. Plist file exists in the package content, and CFBundleVersionString is the set construction number.
The compiling in the operation module is specifically as follows:
s61, pretreatment: expanding macros and processing conditional compiling instructions;
s62, compiling: translating the source code into assembly language;
s63, assembling: translating the assembly code into a machine code to generate a target file;
s64, linking: combining the target files together, analyzing the references, and generating an executable file;
s65, code signature: ensuring application source and integrity;
s66, resource processing: processing resource files in the project, compiling and copying the resource files into an application program package;
s67, generating a Bundle: creating an application program Bundle comprising an executable file and a resource file;
s68, generating a frame file: and generating a corresponding library according to the requirement, wherein the building number corresponding to the output frame work library is the building number generated by automatic formatting.
In short, the invention enables the user to automatically format and generate the content of the construction number before compiling the frame work library, reduces the error probability of not updating the construction number, avoids multiple checks and improves the overall development efficiency.
The foregoing description is only of the preferred embodiments of the invention, and all changes and modifications that come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein.

Claims (12)

1. A method for implementing automatic formatting generation of a frame work build number through RunScript, which is characterized in that: the method comprises the following steps: step S1, generating or preparing a frame work library project for realizing automatic formatting generation of version numbers in advance;
s2, selecting a designated building and compiling unit frame Target in frame work library engineering, and switching to a Build phase tag;
step S3, generating a corresponding running script frame RunScript in a building and compiling unit frame Target;
step S4, writing a corresponding script in an operation script framework, wherein the script realization content is a construction number for generating a specified format and writing the construction number into an info. Plist file, and the info. Plist file is used for managing version number information;
step S5, before moving the running script frame to the compiled file list company, ensuring that the version number is updated before compiling the library;
and S6, after the moving operation, compiling the corresponding frame work library, and waiting for outputting a result, wherein the construction number corresponding to the output frame work library is the construction number after automatic formatting generation.
2. The method for implementing automatic formatting generation of frame work build numbers through RunScript according to claim 1, wherein: the step S3 is further specifically: the generated running Script frame Run Script is only Run in the current building and compiling unit frame work Target, and if the building numbers are required to be automatically formatted and generated simultaneously by different building and compiling units frame work Target, the running Script frame Run Script is required to be respectively generated and realized in different building and compiling units frame work Target.
3. The method for implementing automatic formatting generation of frame work build numbers through RunScript according to claim 1, wherein: the step S4 is further specifically: s41, acquiring a file path of the current info. Plist by using the address of the info. Plist; s42, reading a version number set in a current info.plist file through a command line tool PlistBuddy; s43, acquiring a last generated construction number in the info. Plist file; s44, judging whether the format meets the requirement, wherein the format is composed of the current date and the construction times; s45, if the format meets the requirement, adding 1 to the construction times, otherwise setting the construction number as the formatted content plus the construction times; s46, writing the spliced construction number into an info.
4. The method for implementing automatic formatting generation of frame work build numbers through RunScript according to claim 1, wherein: in step S5, the necessity of the operation is to complete the setting of the build number before the frame work library is generated, and since the content of the info. Plist file is automatically added into the frame work library after the frame work library is compiled, it is necessary to manually adjust the compiling sequence to avoid problems.
5. The method for implementing automatic formatting generation of frame work build numbers through RunScript according to claim 1, wherein: the step S6 is further specifically: the frame work library generated by right clicking and clicking the popped display package content can enter the actual content of the package body, an info. Plist file exists in the package content, and CFBundleVersionString is the set construction number.
6. The method for implementing automatic formatting generation of frame work build numbers through RunScript according to claim 1, wherein: the compiling in the step S6 specifically includes:
s61, pretreatment: expanding macros and processing conditional compiling instructions;
s62, compiling: translating the source code into assembly language;
s63, assembling: translating the assembly code into a machine code to generate a target file;
s64, linking: combining the target files together, analyzing the references, and generating an executable file;
s65, code signature: ensuring application source and integrity;
s66, resource processing: processing resource files in the project, compiling and copying the resource files into an application program package;
s67, generating a Bundle: creating an application program Bundle comprising an executable file and a resource file;
s68, generating a frame file: and generating a corresponding library according to the requirement, wherein the building number corresponding to the output frame work library is the building number generated by automatic formatting.
7. A system for implementing automatic formatting generation of frame work build numbers through RunScript, characterized in that: the system comprises: the system comprises a frame work engineering preparation module, an environment preparation module, an operation script frame generation module, an automatic formatting script writing module, a compiling sequence adjustment module and an operation module;
the frame work preparation module is used for generating or preparing a frame work library project for realizing automatic format generation of the version number in advance;
the environment preparation module selects a designated building and compiling unit frame Target in frame work library engineering and switches to a Build phase tag;
the running script frame generation module generates a corresponding running script frame RunScript in a building and compiling unit frame Target;
the automatic formatting script writing module writes a corresponding script in an operation script frame, wherein script realization content is a construction number for generating a specified formatting and writing the construction number into an info. Plist file, and the info. Plist file is used for managing version number information;
the compiling sequence adjusting module moves the running script frame to the front of the compiled file list company to ensure that the version number is updated before compiling the library;
and after the operation module moves, compiling the corresponding frame work library, and waiting for outputting a result, wherein the construction number corresponding to the output frame work library is the construction number after automatic formatting generation.
8. The system for implementing automatic formatting generation of frame work build numbers through RunScript of claim 7, wherein: the running script frame generation module is further specifically: the generated running Script frame Run Script is only Run in the current building and compiling unit frame work Target, and if the building numbers are required to be automatically formatted and generated simultaneously by different building and compiling units frame work Target, the running Script frame Run Script is required to be respectively generated and realized in different building and compiling units frame work Target.
9. The system for implementing automatic formatting generation of frame work build numbers through RunScript of claim 7, wherein: the automatic formatting script writing module is further specifically: s41, acquiring a file path of the current info. Plist by using the address of the info. Plist; s42, reading a version number set in a current info.plist file through a command line tool PlistBuddy; s43, acquiring a last generated construction number in the info. Plist file; s44, judging whether the format meets the requirement, wherein the format is composed of the current date and the construction times; s45, if the format meets the requirement, adding 1 to the construction times, otherwise setting the construction number as the formatted content plus the construction times; s46, writing the spliced construction number into an info.
10. The system for implementing automatic formatting generation of frame work build numbers through RunScript of claim 7, wherein: in the compiling sequence adjusting module, the necessity of the operation is to complete the setting of the building number before the frame work library is generated, and since the content of the info. Plist file is automatically added into the frame work library after the frame work library is compiled, the compiling sequence needs to be manually adjusted to avoid problems.
11. The system for implementing automatic formatting generation of frame work build numbers through RunScript of claim 7, wherein: the operation module is further specifically: the frame work library generated by right clicking and clicking the popped display package content can enter the actual content of the package body, an info. Plist file exists in the package content, and CFBundleVersionString is the set construction number.
12. The system for implementing automatic formatting generation of frame work build numbers through RunScript of claim 7, wherein: the compiling in the operation module is specifically as follows:
s61, pretreatment: expanding macros and processing conditional compiling instructions;
s62, compiling: translating the source code into assembly language;
s63, assembling: translating the assembly code into a machine code to generate a target file;
s64, linking: combining the target files together, analyzing the references, and generating an executable file;
s65, code signature: ensuring application source and integrity;
s66, resource processing: processing resource files in the project, compiling and copying the resource files into an application program package;
s67, generating a Bundle: creating an application program Bundle comprising an executable file and a resource file;
s68, generating a frame file: and generating a corresponding library according to the requirement, wherein the building number corresponding to the output frame work library is the building number generated by automatic formatting.
CN202310999952.8A 2023-08-09 2023-08-09 Method and system for realizing automatic formatting generation of frame work construction number through RunScript Pending CN117149207A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310999952.8A CN117149207A (en) 2023-08-09 2023-08-09 Method and system for realizing automatic formatting generation of frame work construction number through RunScript

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310999952.8A CN117149207A (en) 2023-08-09 2023-08-09 Method and system for realizing automatic formatting generation of frame work construction number through RunScript

Publications (1)

Publication Number Publication Date
CN117149207A true CN117149207A (en) 2023-12-01

Family

ID=88909071

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310999952.8A Pending CN117149207A (en) 2023-08-09 2023-08-09 Method and system for realizing automatic formatting generation of frame work construction number through RunScript

Country Status (1)

Country Link
CN (1) CN117149207A (en)

Similar Documents

Publication Publication Date Title
JP4195479B2 (en) Incremental generation system
US6055369A (en) Apparatus for visual programming with screen flow
JP4822817B2 (en) Compilation system
US7657878B2 (en) Compiler, method of compiling and program development tool
US5774728A (en) Method and system for compiling sections of a computer program for multiple execution environments
US7971201B2 (en) Multiple operating device version software generating system and multiple operating device version software generation support program and method
US7610545B2 (en) Annotations for tracking provenance
US8028268B2 (en) System and method for building software package for embedded system
US7131111B2 (en) Development of manifest for java embedded server bundle
US20050262482A1 (en) System and method for efficiently analyzing and building interdependent resources in a software project
US20080104096A1 (en) Software development system
US8122440B1 (en) Method and apparatus for enumerating external program code dependencies
US7698692B1 (en) Preparing a binary file for future instrumentation
US20110093837A1 (en) Method and apparatus for enabling parallel processing during execution of a cobol source program using two-stage compilation
US7357332B2 (en) Providing diagnostic information on the processing of variables in source code
US8869126B2 (en) Method and apparatus enabling multi threaded program execution for a Cobol program including OpenMP directives by utilizing a two-stage compilation process
JPH09198276A (en) Program debugging system
US20110126179A1 (en) Method and System for Dynamic Patching Software Using Source Code
US6901584B2 (en) Assembling an object code module
JPH0926884A (en) Method and apparatus for making required flow information usable during task requiring binary information
CN111736812A (en) Document code execution method and device, computer equipment and storage medium
CN111552480B (en) Cross-platform compiling method, device, equipment and readable storage medium
CN117149207A (en) Method and system for realizing automatic formatting generation of frame work construction number through RunScript
US6178547B1 (en) Method and apparatus for generating non-redundant symbolic debug information in computer programs
JPH10187461A (en) Language processing system

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