CN114239054A - iOS application construction method, device, computer equipment and storage medium - Google Patents

iOS application construction method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN114239054A
CN114239054A CN202111392332.5A CN202111392332A CN114239054A CN 114239054 A CN114239054 A CN 114239054A CN 202111392332 A CN202111392332 A CN 202111392332A CN 114239054 A CN114239054 A CN 114239054A
Authority
CN
China
Prior art keywords
operating environment
packaging
ios application
current operating
environment
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
CN202111392332.5A
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.)
CCB Finetech Co Ltd
Original Assignee
CCB Finetech 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 CCB Finetech Co Ltd filed Critical CCB Finetech Co Ltd
Priority to CN202111392332.5A priority Critical patent/CN114239054A/en
Publication of CN114239054A publication Critical patent/CN114239054A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/629Protecting access to data via a platform, e.g. using keys or access control rules to features or functions of an application
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2141Access rights, e.g. capability lists, access control lists, access tables, access matrices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present disclosure relates to an iOS application building method, apparatus, computer device, storage medium, and computer program product. The method comprises the following steps: determining construction parameters of the packaging iOS application, and constructing a packaging task by using the construction parameters; updating codes from a remote warehouse to the current packaging environment according to the pre-stored code information in the packaging task; determining the current operating environment of a packaging task, and unlocking a key string corresponding to the current operating environment by using decryption data corresponding to the current operating environment to obtain a signature certificate in the current operating environment; and constructing the iOS application installation package according to the signature certificate in the current operating environment and the code information in the current packaging environment. By adopting the method, when the signature certificate with the same name is used and the packaging environment is switched in the same packaging task, the correct signature certificate can be identified and used, so that the construction of the iOS application is more accurate and efficient.

Description

iOS application construction method, device, computer equipment and storage medium
Technical Field
The present disclosure relates to the field of mobile phone application construction technologies, and in particular, to an iOS application construction method, apparatus, computer device, storage medium, and computer program product.
Background
With the development of software development technology, a mobile phone application construction technology appears. In the process of the construction of the iOS application, it is usually required to perform packaging construction using a signature certificate officially certified by apple inc. For an iOS application, two different versions of the application are typically required to build the test environment and the production environment, so two different signed certificates are used: production certificates and test certificates.
However, the production certificate and the test certificate may be of the same name for the same application. In an automatic packing construction system Jenkins, for the same packing task, a certificate can be selected only through certificate name identification, so that for a production certificate and a test certificate with the same name, certificate switching can not be performed in the same packing task according to an applied packing environment.
Disclosure of Invention
In view of the foregoing, it is desirable to provide an iOS application building method, apparatus, computer device, storage medium, and computer program product capable of identifying and using a correct signed certificate when using the same signed certificate and switching the packaging environment in the same packaging task. The scheme provided by the disclosure comprises the following steps:
in a first aspect, the present disclosure provides an iOS application building method. The method comprises the following steps:
determining construction parameters of the packaging iOS application, and constructing a packaging task by using the construction parameters;
updating codes from a remote warehouse to the current packaging environment according to the pre-stored code information in the packaging task;
determining the current operating environment of the packaging task, unlocking a key string corresponding to the current operating environment by using decryption data corresponding to the current operating environment, and obtaining a signature certificate under the current operating environment, wherein the key string comprises a key string which is pre-created according to the operating environment of the iOS application required to be packaged by the packaging task and corresponds to the operating environment, and is used for storing the signature certificate corresponding to the operating environment, and the names of the signature certificates under different operating environments are the same;
and constructing an iOS application installation package according to the signature certificate in the current operating environment and the code information in the current packaging environment.
In one embodiment, after updating the code from the remote repository to the current packaging environment according to the pre-stored code information in the packaging task, the method further comprises:
determining a version number of the packaged iOS application, wherein the version number is obtained by positioning a grep command to a row where a keyword version is located in an info.
Adding 1 to the version number of the packaged iOS application, and backfilling to the info.
In one embodiment, the method further comprises:
and modifying a header file, a Bundle ID and a service item corresponding to the current operating environment according to the current operating environment of the packaging task, wherein the service item is a service in the iOS application bound with the Bundle ID.
In one embodiment, the constructing the iOS application installation package according to the signature certificate in the current running environment and the code information in the current packaging environment includes:
and adding the signature certificate in the current operation environment in a key string corresponding to the current operation environment according to the current operation environment of the packaging task.
In one embodiment, the method further comprises:
deleting a target signature certificate in a key string corresponding to the current operating environment, wherein the target signature certificate has the same name as the signature certificate in the key string corresponding to the current operating environment.
In one embodiment, the method further comprises:
transmitting the iOS application installation package to tomcat service of a specified terminal through an intranet, wherein the specified terminal is allowed to be accessed by an extranet;
submitting the update code obtained from the remote repository to the remote repository and updating a version number of the iOS application.
In a second aspect, the present disclosure also provides an iOS application building apparatus. The device comprises:
the construction parameter determining module is used for determining construction parameters of the packaging iOS application and constructing a packaging task by using the construction parameters;
the code updating module is used for updating codes from a remote warehouse to the current packaging environment according to the pre-stored code information in the packaging task;
the key string unlocking module is used for determining the current operating environment of the packaging task, unlocking a key string corresponding to the current operating environment by using decryption data corresponding to the current operating environment, and obtaining a signature certificate under the current operating environment, wherein the key string comprises a key string which is pre-created according to the operating environment of the iOS application required to be packaged by the packaging task and corresponds to the operating environment, the key string is used for storing the signature certificate corresponding to the operating environment, and the names of the signature certificates under different operating environments are the same;
and the installation package construction module is used for constructing the iOS application installation package according to the signature certificate in the current operating environment and the code information in the current packaging environment.
In one embodiment, the apparatus further comprises:
a version number determining module, configured to determine a version number of the package iOS application after updating a code from a remote repository to a current packaging environment according to pre-stored code information in the packaging task, where the version number is obtained by locating a row where a keyword version is located in an info.
And the backfilling version number module is used for adding 1 to the version number of the packaging iOS application and backfilling the version number to the info.
In one embodiment, the apparatus further comprises:
and the modification module is used for modifying the header file, the Bundle ID and the service item corresponding to the current operating environment according to the current operating environment of the packaging task, wherein the service item is a service in the iOS application bound with the Bundle ID.
In one embodiment, the installation package building module includes:
and the key string adding module is used for adding the signature certificate in the current operating environment in the key string corresponding to the current operating environment according to the current operating environment of the packaging task.
In one embodiment, the apparatus further comprises:
and the key string deleting module is used for deleting a target signature certificate in the key string corresponding to the current operating environment, wherein the target signature certificate has the same name as the signature certificate in the key string corresponding to the current operating environment.
In one embodiment, the apparatus further comprises:
the installation package transmission module is used for transmitting the iOS application installation package to tomcat service of a specified terminal through an internal network, and the specified terminal is allowed to be accessed by the external network;
an update code submission module to submit the update code obtained from the remote repository to the remote repository and update a version number of the iOS application.
In a third aspect, the present disclosure also provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the method in the above embodiments when executing the computer program.
In a fourth aspect, the present disclosure also provides a computer-readable storage medium. The computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method in the above-mentioned embodiments.
In a fifth aspect, the present disclosure also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the method of the above embodiments.
According to the iOS application construction method, the iOS application construction device, the iOS application construction computer device, the iOS application storage medium and the iOS application storage medium, the key string corresponding to the running environment is created, the key string corresponding to the current running environment is unlocked by using the decryption data corresponding to the current running environment according to the current running environment of the packaging task, and the signature certificate under the current running environment is obtained, so that when the signature certificate with the same name is used in the same packaging task and the packaging environment is switched, the correct signature certificate can be identified and used, and the iOS application can be constructed more accurately and efficiently.
Drawings
Fig. 1 is a flowchart illustrating an iOS application building method according to an embodiment.
FIG. 2 is a flowchart illustrating a method for constructing an iOS application according to an embodiment.
FIG. 3 is a flowchart illustrating a method for constructing an iOS application according to an embodiment.
FIG. 4 is a flowchart illustrating a method for constructing an iOS application according to an embodiment.
FIG. 5 is a flowchart illustrating a method for constructing an iOS application according to an embodiment.
FIG. 6 is a flowchart illustrating a method for constructing an iOS application according to an embodiment.
FIG. 7 is a flowchart illustrating a method for constructing an iOS application according to an embodiment.
Fig. 8 is a block diagram showing the structure of the iOS application constructing apparatus in one embodiment.
FIG. 9 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In one embodiment, as shown in FIG. 1, an iOS application building method is provided. The embodiment is illustrated by applying the method to a terminal, and it can be understood that the method can also be applied to a server, and can also be applied to a system comprising the terminal and the server, and is implemented by interaction between the terminal and the server. In this embodiment, the method includes the steps of:
and S102, determining construction parameters of the packaging iOS application, and constructing a packaging task by using the construction parameters.
Wherein packaging may include making the developed executable file and necessary documents into a software package using a packaging tool. The build parameters may include a run environment, which may be a production environment or a test environment, for example. The build parameters may also include an associated description file of the certificate corresponding to the operating environment. The build parameters may also include a runtime environment configuration file. The build parameter may also include whether the version number is a self-growth parameter. The build parameters may also include packed code branches.
Specifically, the construction parameters of the packaging iOS application are determined, the construction parameters can comprise a running environment, a related description file corresponding to the running environment, a running environment configuration file, a version self-growth parameter, a packaged code branch and the like, and the packaging task is constructed by using the construction parameters. In some embodiments, Jenkins is accessed through tomcat remote services, building parameters of the packaged iOS application are selected on Jenkins, and the packaging task is built according to the building parameters. Jenkins can comprise an open-source continuous integration tool written in Java and used for monitoring continuous and repeated work, and aims to provide an open and easy-to-use software platform to enable continuous integration of software. Through installation configuration, Jenkins can be used for constructing a task which can be used for automatic packaging and issuing of iOS application, wherein the Jenkins has the following advantages due to the functional design: perfect task access authority management; a signature certificate and a push certificate required by iOS packaging can be set on the graphical interface; have a continuous integration capability based on a code management platform; the packing parameters can be configured, and the applications of different running environments can be packed by using the same packing task through parameter selection.
And step S104, updating codes from the remote warehouse to the current packaging environment according to the pre-stored code information in the packaging task.
Where the remote repository may include servers to which other developers may connect. The remote repository may store pre-stored code information for performing the packaging task. The pre-stored code information may include engineering codes preset in the packaging task, a git warehouse address, and a git account with code pull authority.
Specifically, the code is updated from the remote warehouse to the current packaging environment according to the engineering code preset in the packaging task, the git warehouse address and the git account with the code pulling authority. In some embodiments, the code is updated from the git remote repository into the Jenkins packaging environment by engineering code, git repository address and git account number with code pull authority preset in the packaging task.
Step S106, determining the current operating environment of the packaging task, unlocking a key string corresponding to the current operating environment by using decryption data corresponding to the current operating environment, and obtaining a signature certificate under the current operating environment, wherein the key string comprises a key string which is created in advance according to the operating environment of the iOS application required by the packaging task and corresponds to the operating environment, the key string is used for storing the signature certificate corresponding to the operating environment, and the names of the signature certificates under different operating environments are the same.
Wherein the decryption data may comprise a scripting language. The key string may include a cloud-based service that assists the user in managing information such as website account numbers, passwords, and credit card numbers. The signed certificate may include a digital certificate used to prove the legitimacy and integrity of the iOS application content. For applications that want to be installed on a genuine machine or published to an App store, only signature verification can ensure that the source is authentic and that App content is complete and untampered. For some services, such as push services, required by the iOS application, the description file required for packaging needs to be consistent with the certificate guarantee, otherwise packaging will fail.
Specifically, the current operating environment of the packaging task is determined, and the key string corresponding to the current operating environment is unlocked by using the scripting language corresponding to the current operating environment, so that the signature certificate in the current operating environment is obtained. The key string may include a key string corresponding to the runtime environment of the iOS application that was previously created according to the runtime environment that the packaging task needs to package. Exemplary, product. keyhain is created corresponding to a production environment; keychain is created corresponding to the test environment. According to the current operating environment, a key string stored in a corresponding certificate is unlocked by a command of 'security-v unlock-key-p { key string password } { key string }', namely, a certificate required by the production environment app is stored in the key string product.
And S108, constructing an iOS application installation package according to the signature certificate in the current operating environment and the code information in the current packaging environment.
The application installation package may include a software installation package, or may include a set of files that can be decompressed by itself. The application installation package may include an IPA installation package.
Specifically, an iOS IPA application installation package is constructed according to the signature certificate in the current running environment and the code information in the current packaging environment.
According to the iOS application construction method, the key string corresponding to the running environment is created in advance, the key string corresponding to the current running environment is unlocked by using the decryption data corresponding to the current running environment according to the current running environment of the packaging task, and the signature certificate under the current running environment is obtained, so that when the signature certificate with the same name is used in the same packaging task and the packaging environment is switched, the correct signature certificate can be identified and used, and the iOS application construction is quicker and more accurate.
In one embodiment, as shown in fig. 2, after updating the code from the remote repository to the current packaging environment according to the pre-stored code information in the packaging task, step S104, the method further includes:
step S202, determining the version number of the packaged iOS application, wherein the version number is obtained by positioning the version number of the keyword in an info.
The application version number may include a version number set for the application, and may be set in a numerical manner. Plist may include a file in iOS configured for project runtime.
In particular, locate the row where the keyword version is located in the info.
And step S204, adding 1 to the version number of the packaged iOS application, and backfilling to an info.
Specifically, the version number of the packaged iOS application is added by 1 and then filled in an info.
In this embodiment, after the version number of the iOS application is obtained by locating the row of the keyword version in the info.plist file through the grep command, the version number of the packaged iOS application is added with 1 and then filled in the info.plist file. The version number of the packaged iOS application is automatically increased, so that the iOS application is constructed more quickly and accurately.
In one embodiment, as shown in fig. 3, the method further comprises:
and S302, according to the current operating environment of the packaging task, modifying a header file, a Bundle ID and a service item corresponding to the current operating environment, wherein the service item is a service in the iOS application bound with the Bundle ID.
The Bundle ID may include, among other things, a unique identification for each iOS application.
And modifying the head file of h corresponding to the current operating environment according to the current operating environment of the packaging task. And modifying the Bundle ID according to the current running environment of the packaging task. And modifying a service item according to the current operating environment of the packaging task, wherein the service item is a service in the iOS application bound with the Bundle ID. In some implementations, the service item can be a map location.
In the embodiment, the header file corresponding to the current operating environment, the Bundle ID and the service item bound with the Bundle ID are modified, so that the iOS application is constructed more quickly and accurately.
In one embodiment, as shown in fig. 4, in step S108, constructing the iOS application installation package according to the signature certificate in the current running environment and the code information in the current packaging environment includes:
and S402, adding a signature certificate in the current operation environment in the key string corresponding to the current operation environment according to the current operation environment of the packaging task.
Specifically, according to the current operating environment of the packaging task, a signature certificate in the current operating environment is added to a key string corresponding to the current operating environment. In some embodiments, a signature certificate in the current running environment is added to a key string corresponding to the current running environment through a script command, and when the iOS application of the production environment needs to be packaged, the signature certificate corresponding to the production environment can be added by executing the script command "security identity {. p12 certificate file } { product.
In this embodiment, by adding the signature certificate in the current operating environment, when the signature certificate of the same name is used and the packaging environment is switched in the same packaging task, the correct signature certificate can be identified and used, so that the iOS application can be constructed more quickly and accurately.
In one embodiment, as shown in fig. 5, the method further comprises:
step S502, deleting a target signature certificate in the key string corresponding to the non-current operating environment, wherein the target signature certificate has the same name as the signature certificate in the key string corresponding to the current operating environment.
Specifically, a target signature certificate in a key string corresponding to the non-current operating environment is deleted through the script command, wherein the target signature certificate has the same name as the signature certificate in the key string corresponding to the current operating environment. In some embodiments, the same-name certificate in the non-packaging environment key string is deleted by a script command "security delete-certificate-c" { same certificate name for same-name certificate } "{ key string for non-required packaging environment }".
In this embodiment, by deleting the homonymous signature certificate in the key string corresponding to the non-current operating environment, the homonymous signature certificate does not coexist in the same physical machine, thereby further ensuring the correctness of the required signature certificate, ensuring that the use of the homonymous signature certificate in the same packaging task is not confused, and enabling the iOS application to be constructed more quickly and accurately.
In one embodiment, as shown in fig. 6, the method further comprises:
step S602, transmitting the iOS application installation package to tomcat service of a designated terminal through an internal network, wherein the designated terminal is allowed to be accessed by the external network.
Wherein tomcat may comprise a free Web application server with open source code.
Specifically, the iOS application installation package is transmitted through the intranet to the tomcat service of a designated terminal that can be accessed by the extranet.
Step S604, submit the update code obtained from the remote repository to the remote repository and update the version number of the iOS application.
Specifically, the update code obtained by the remote repository is submitted to the remote repository and updates the version number of the iOS application.
In this embodiment, the iOS application installation package is transmitted to tomcat of a specific terminal accessible by the external network, and the update code obtained by the remote repository is submitted to the remote repository and the version number of the iOS application is updated, so that the iOS application construction is faster and more accurate.
In one embodiment, as shown in fig. 7, the present disclosure provides an iOS application building method comprising the steps of:
and S702, determining construction parameters of the packaging iOS application, and constructing a packaging task by using the construction parameters.
And step S704, updating the codes from the remote warehouse to the current packaging environment according to the pre-stored code information in the packaging task.
Step S706, determining the version number of the packaged iOS application, wherein the version number is obtained by positioning the version number of the keyword in an info.
And step S708, adding 1 to the version number of the packaged iOS application, and backfilling to an info.
And step S710, according to the current operating environment of the packaging task, modifying a header file, a Bundle ID and a service item corresponding to the current operating environment, wherein the service item is a service in the iOS application bound with the Bundle ID.
Step S712, determining a current operating environment of the packaging task, unlocking a key string corresponding to the current operating environment by using the decryption data corresponding to the current operating environment, and obtaining a signature certificate in the current operating environment, where the key string includes a key string corresponding to the operating environment, which is created in advance according to the operating environment in which the iOS application needs to be packaged by the packaging task, and the key string is used to store the signature certificates corresponding to the operating environments, and names of the signature certificates in different operating environments are the same.
And step S714, adding the signature certificate in the current operation environment in the key string corresponding to the current operation environment according to the current operation environment of the packaging task.
Step S716, deleting the target signature certificate in the key string corresponding to the non-current operating environment, where the name of the target signature certificate is the same as that of the signature certificate in the key string corresponding to the current operating environment.
Step S718, constructing an iOS application installation package according to the signature certificate in the current operating environment and the code information in the current packaging environment.
And S720, transmitting the iOS application installation package to tomcat service of a designated terminal through an internal network, wherein the designated terminal is allowed to be accessed by the external network.
Step S722, submit the update code obtained from the remote repository to the remote repository and update the version number of the iOS application.
It should be understood that although the various steps in the flow charts of fig. 1-7 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-7 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
Based on the same inventive concept, the embodiment of the present application further provides an iOS application constructing apparatus for implementing the above-mentioned iOS application constructing method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so that specific limitations in one or more embodiments of the iOS application construction device provided below may refer to the limitations on the iOS application construction method in the above description, and are not described herein again.
In one embodiment, as shown in fig. 8, there is provided an iOS application building apparatus including: a build parameter determination module 802, a code update module 804, a key string unlock module 806, and an installation package build module 808, wherein:
a construction parameter determining module 802, configured to determine construction parameters for packaging the iOS application, and construct a packaging task using the construction parameters;
a code updating module 804, configured to update a code from a remote repository to a current packaging environment according to pre-stored code information in the packaging task;
a key string unlocking module 806, configured to determine a current operating environment of the packaging task, unlock, using decryption data corresponding to the current operating environment, a key string corresponding to the current operating environment, and obtain a signature certificate in the current operating environment, where the key string includes a key string corresponding to the operating environment and pre-created according to an operating environment in which the iOS application needs to be packaged for the packaging task, and the key string is used to store signature certificates corresponding to the operating environments, where names of the signature certificates in different operating environments are the same;
and the installation package construction module 808 is configured to construct an iOS application installation package according to the signature certificate in the current operating environment and the code information in the current packaging environment.
In one embodiment, the apparatus further comprises:
a version number determining module, configured to determine a version number of the package iOS application after updating a code from a remote repository to a current packaging environment according to pre-stored code information in the packaging task, where the version number is obtained by locating a row where a keyword version is located in an info.
And the backfilling version number module is used for adding 1 to the version number of the packaging iOS application and backfilling the version number to the info.
In one embodiment, the apparatus further comprises:
and the modification module is used for modifying the header file, the Bundle ID and the service item corresponding to the current operating environment according to the current operating environment of the packaging task, wherein the service item is a service in the iOS application bound with the Bundle ID.
In one embodiment, the installation package building module comprises:
and the key string adding module is used for adding the signature certificate in the current operating environment in the key string corresponding to the current operating environment according to the current operating environment of the packaging task.
In one embodiment, the apparatus further comprises:
and the key string deleting module is used for deleting a target signature certificate in the key string corresponding to the current operating environment, wherein the target signature certificate has the same name as the signature certificate in the key string corresponding to the current operating environment.
In one embodiment, the apparatus further comprises:
the installation package transmission module is used for transmitting the iOS application installation package to tomcat service of a specified terminal through an internal network, and the specified terminal is allowed to be accessed by the external network;
an update code submission module to submit the update code obtained from the remote repository to the remote repository and update a version number of the iOS application.
The respective modules in the above-described iOS application building apparatus may be entirely or partially implemented by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 9. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement an iOS application building method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 9 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the above-described method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the respective method embodiment as described above.
In an embodiment, a computer program product is provided, comprising a computer program which, when being executed by a processor, carries out the steps of the respective method embodiment described above.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory or optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), Magnetic Random Access Memory (MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing based data processing logic devices, etc., without limitation.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present disclosure, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present disclosure should be subject to the appended claims.

Claims (15)

1. An iOS application building method, the method comprising:
determining construction parameters of the packaging iOS application, and constructing a packaging task by using the construction parameters;
updating codes from a remote warehouse to the current packaging environment according to the pre-stored code information in the packaging task;
determining the current operating environment of the packaging task, unlocking a key string corresponding to the current operating environment by using decryption data corresponding to the current operating environment, and obtaining a signature certificate under the current operating environment, wherein the key string comprises a key string which is pre-created according to the operating environment of the iOS application required to be packaged by the packaging task and corresponds to the operating environment, and is used for storing the signature certificate corresponding to the operating environment, and the names of the signature certificates under different operating environments are the same;
and constructing an iOS application installation package according to the signature certificate in the current operating environment and the code information in the current packaging environment.
2. The method of claim 1, wherein after updating code from a remote repository to a current packaging environment according to pre-stored code information in the packaging task, the method further comprises:
determining a version number of the packaged iOS application, wherein the version number is obtained by positioning a grep command to a row where a keyword version is located in an info.
Adding 1 to the version number of the packaged iOS application, and backfilling to the info.
3. The method of claim 2, further comprising:
and modifying a header file, a Bundle ID and a service item corresponding to the current operating environment according to the current operating environment of the packaging task, wherein the service item is a service in the iOS application bound with the Bundle ID.
4. The method of claim 1, wherein constructing the iOS application installation package according to the signed certificate in the current running environment and the code information in the current packaging environment comprises:
and adding the signature certificate in the current operation environment in a key string corresponding to the current operation environment according to the current operation environment of the packaging task.
5. The method of claim 4, further comprising:
deleting a target signature certificate in a key string corresponding to the current operating environment, wherein the target signature certificate has the same name as the signature certificate in the key string corresponding to the current operating environment.
6. The method of claim 1, further comprising:
transmitting the iOS application installation package to tomcat service of a specified terminal through an intranet, wherein the specified terminal is allowed to be accessed by an extranet;
submitting the update code obtained from the remote repository to the remote repository and updating a version number of the iOS application.
7. An iOS application building apparatus, characterized in that the apparatus comprises:
the construction parameter determining module is used for determining construction parameters of the packaging iOS application and constructing a packaging task by using the construction parameters;
the code updating module is used for updating codes from a remote warehouse to the current packaging environment according to the pre-stored code information in the packaging task;
the key string unlocking module is used for determining the current operating environment of the packaging task, unlocking a key string corresponding to the current operating environment by using decryption data corresponding to the current operating environment, and obtaining a signature certificate under the current operating environment, wherein the key string comprises a key string which is pre-created according to the operating environment of the iOS application required to be packaged by the packaging task and corresponds to the operating environment, the key string is used for storing the signature certificate corresponding to the operating environment, and the names of the signature certificates under different operating environments are the same;
and the installation package construction module is used for constructing the iOS application installation package according to the signature certificate in the current operating environment and the code information in the current packaging environment.
8. The apparatus of claim 7, further comprising:
a version number determining module, configured to determine a version number of the package iOS application after updating a code from a remote repository to a current packaging environment according to pre-stored code information in the packaging task, where the version number is obtained by locating a row where a keyword version is located in an info.
And the backfilling version number module is used for adding 1 to the version number of the packaging iOS application and backfilling the version number to the info.
9. The apparatus of claim 8, further comprising:
and the modification module is used for modifying the header file, the Bundle ID and the service item corresponding to the current operating environment according to the current operating environment of the packaging task, wherein the service item is a service in the iOS application bound with the Bundle ID.
10. The apparatus of claim 7, wherein the installation package building module comprises:
and the key string adding module is used for adding the signature certificate in the current operating environment in the key string corresponding to the current operating environment according to the current operating environment of the packaging task.
11. The apparatus of claim 10, further comprising:
and the key string deleting module is used for deleting a target signature certificate in the key string corresponding to the current operating environment, wherein the target signature certificate has the same name as the signature certificate in the key string corresponding to the current operating environment.
12. The apparatus of claim 7, further comprising:
the installation package transmission module is used for transmitting the iOS application installation package to tomcat service of a specified terminal through an internal network, and the specified terminal is allowed to be accessed by the external network;
an update code submission module to submit the update code obtained from the remote repository to the remote repository and update a version number of the iOS application.
13. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 6.
14. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
15. A computer program product comprising a computer program, characterized in that the computer program realizes the steps of the method of any one of claims 1 to 6 when executed by a processor.
CN202111392332.5A 2021-11-19 2021-11-19 iOS application construction method, device, computer equipment and storage medium Pending CN114239054A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111392332.5A CN114239054A (en) 2021-11-19 2021-11-19 iOS application construction method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111392332.5A CN114239054A (en) 2021-11-19 2021-11-19 iOS application construction method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114239054A true CN114239054A (en) 2022-03-25

Family

ID=80750497

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111392332.5A Pending CN114239054A (en) 2021-11-19 2021-11-19 iOS application construction method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114239054A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115421781A (en) * 2022-11-04 2022-12-02 易方信息科技股份有限公司 Shell script-based IOS (input/output) end project automatic packaging method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115421781A (en) * 2022-11-04 2022-12-02 易方信息科技股份有限公司 Shell script-based IOS (input/output) end project automatic packaging method

Similar Documents

Publication Publication Date Title
CN110365670B (en) Blacklist sharing method and device, computer equipment and storage medium
CN110944046B (en) Control method of consensus mechanism and related equipment
CN112558946B (en) Method, device, equipment and computer readable storage medium for generating code
CN111008034B (en) Patch generation method and device
CN107231490A (en) Dynamic updates method, client and the server of IOS system applications
CN109493048B (en) Financial accounting method, device, equipment and storage medium based on block chain
CN112860778B (en) Database management method, device, equipment and medium for desktop application program
CN109144487B (en) Method, device, computer equipment and storage medium for developing business of parts
JP2017509082A (en) Safe reading of data into non-volatile memory or secure elements
CN112529100B (en) Training method and device for multi-classification model, electronic equipment and storage medium
CN104423961A (en) Method and system for generating testing script
CN111340483A (en) Data management method based on block chain and related equipment
CN114239054A (en) iOS application construction method, device, computer equipment and storage medium
CN113918437A (en) User behavior data analysis method and device, computer equipment and storage medium
CN112862449A (en) Structural chemical industry bill generation method and device, computer equipment and storage medium
US20230351050A1 (en) Method and apparatus for custom development of payment application, computer device, and storage medium
CN104346165A (en) Information processing apparatus, information processing method, program, storage medium, and information processing system
CN112650954A (en) Block chain data sharing method, device, equipment and storage medium
CN115017436B (en) Data interaction method and device of application program, computer equipment and storage medium
CN115982735A (en) Method, device and storage medium for automatically processing production data
CN113112270B (en) Data organization method based on block chain
CN110806935A (en) Application program construction method, device and system
CN112527377B (en) Application program generation processing method, device, computer equipment and storage medium
CN114138303A (en) Vehicle application program updating method, device, medium and vehicle
CN111818094A (en) Identity registration method, device and equipment

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