CN110348178A - The method that a kind of pair of iOS system application is signed again - Google Patents
The method that a kind of pair of iOS system application is signed again Download PDFInfo
- Publication number
- CN110348178A CN110348178A CN201910567557.6A CN201910567557A CN110348178A CN 110348178 A CN110348178 A CN 110348178A CN 201910567557 A CN201910567557 A CN 201910567557A CN 110348178 A CN110348178 A CN 110348178A
- Authority
- CN
- China
- Prior art keywords
- file
- pair
- system application
- ios system
- signed again
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 24
- 230000009191 jumping Effects 0.000 claims description 11
- UBCKGWBNUIFUST-YHYXMXQVSA-N tetrachlorvinphos Chemical compound COP(=O)(OC)O\C(=C/Cl)C1=CC(Cl)=C(Cl)C=C1Cl UBCKGWBNUIFUST-YHYXMXQVSA-N 0.000 claims description 11
- 238000012857 repacking Methods 0.000 claims description 4
- 238000012795 verification Methods 0.000 claims description 3
- 238000009434 installation Methods 0.000 abstract description 2
- 230000006870 function Effects 0.000 description 4
- 230000006978 adaptation Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/10—Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
- G06F21/105—Arrangements for software license management or administration, e.g. for managing licenses at corporate level
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/10—Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
- G06F21/12—Protecting executable software
- G06F21/121—Restricting unauthorised execution of programs
Abstract
The invention discloses the methods that a kind of pair of iOS system application is signed again, include the following steps, decompress the file of the entitled ipa of suffix;Entitlements.plist the file information is extracted in file after decompressing in S1;The new version number of ipa is set;TeamName information is read, the description file of entitled embedded.mobileprovision is replaced with into new description file;It is signed again to the file that suffix is entitled app;Repack the file of app;Intermediate file is removed, including;Signature terminates again.Quickly signing again for App installation kit may be implemented in the method for the present invention, greatly improves the efficiency signed again, improves the usage experience and satisfaction of developer.
Description
Technical field
The present invention relates to the methods that computer field more particularly to a kind of pair of iOS system application are signed again.
Background technique
With increasing for enterprise development application, announced App is managed more and more cumbersome.Some App do not have new function
Update, configuration file validity period of usual iOS enterprise version App is only one year.Until App is soon expired, then to these App
The engineering code at place is recompilated, is packaged, and very big workload can be brought.As time goes by, translation and compiling environment meeting
It changes, such as the missing of dependent file, iOS system and the equipment of type etc.;In order to adapt to change, it has to go to modify original
Engineering code, re-start adaptation work, can bring very big uncertainty, and function check work that can also be certain,
The Personnel Resources of company are increased on certain procedures.
In order to solve the problems, such as to have sent out an edition App certificate expired, current widespread practice is to be signed again.But signature step again
Rapid complicated and cumbersome, careless slightly the problems such as will lead to the unavailable packet signed out again, missing documents.
Summary of the invention
The method signed again the purpose of the present invention is in view of the drawbacks of the prior art, providing a kind of pair of iOS system application,
The uncertain problems such as unavailable, missing documents of issuable packet in signature process are eliminated, the efficiency of O&M is improved.
In order to achieve the goal above, the invention adopts the following technical scheme:
The method that a kind of pair of iOS system application is signed again, comprising the following steps:
S1, the file for decompressing the entitled ipa of suffix;
Entitlements.plist the file information is extracted in S2, the file after decompressing in S1;
S3, the new version number that ipa is set;
S4, TeamName information is read,
S5, the description file of entitled embedded.mobileprovision is replaced with into new description file;
S6, it is signed again to the file that suffix is entitled app;
S7, the file for repacking app;
S8, remove intermediate file, including Payload file, entitlements.plist file,
AppThinning.plist file, plist message file of Appex etc.;
S9, signature terminates again.
Further, the step S2 to S3 further includes following step,
Sa1, the plug-in unit for being appex with the presence or absence of suffix;
Sa2, if it exists, then extract its plist the file information, if otherwise jumping to S3;
Sa3, it is signed again to the plug-in unit that suffix is appex, jumps to S3.
Further, the step Sa3 to S3 further includes following step,
Sb1, using whether indicated release number, if then jumping to S3;
If it is not, then adding 1 to be used as new version number last position of original version number in Sb2, Sb1, then jump to S3.
Further, if it is not, can also jump to following step in step Sa2:
Sb1, using whether indicated release number, if then jumping to S3;
If it is not, then adding 1 to be used as new version number last position of original version number in Sb2, Sb1, then jump to S3.
Further, the step S3 to S4 further includes following step,
Sc1, whether formulate mobileprovision and describe file, if then jumping to S4;
If it is not, then describing to read in file from existing embedded.mobileprovision in Sc2, Sc1
TeamName information, and old signature file can be directly deleted, go to step S6.
Further, the step S5 to S6 further includes following step,
Sd, old signature file is deleted.
Further, the step S6 to S7 further includes following step,
Se printed signature verification information.
Technical solution of the present invention is used, the invention has the benefit that compared with prior art, the method for the present invention can be real
Quickly signing again for existing App installation kit, greatly improves the efficiency signed again, improves the usage experience and satisfaction of developer
Degree.This method is realized by Swift language, has the characteristics that lightweight, convenient easy-to-use, relative to manual operations, is saved
Many time, it ensure that the correctness signed again.
Detailed description of the invention
Fig. 1 is the method flow diagram that a kind of pair of iOS system application provided by the invention is signed again;
Fig. 2 is the method general flow chart that a kind of pair of iOS system application provided by the invention is signed again.
Specific embodiment
Concrete scheme specific embodiment of the present invention is further elaborated in conjunction with attached drawing.
Embodiment one,
As shown in Figure 1, Main process steps of the present invention are as follows:
S1, the file for decompressing the entitled ipa of suffix;
Entitlements.plist the file information is extracted in S2, the file after decompressing in S1;
S3, the new version number that ipa is set;
S4, TeamName information is read,
S5, the description file of entitled embedded.mobileprovision is replaced with into new description file;
S6, it is signed again to the file that suffix is entitled app;
S7, the file for repacking app;
S8, remove intermediate file, including Payload file, entitlements.plist file,
AppThinning.plist file, plist message file of Appex etc.;
S9, signature terminates again.
The present invention can both be able to achieve the function of signing again by above main step, and step is succinct, high-efficient, improve
The usage experience and satisfaction of developer.
Wherein, the file of the entitled ipa of suffix is Apple (Apple Inc.) program application file iPhoneApplication
Abbreviation, ipa file is substantially a zip compressed package.
Entitlements.plist file refers to the file under iOS system.
Suffix is that the file of Plist is a kind of document form, commonly used in storage user setting, can be used for storage bundle
The information tied up, the function in old-fashioned iOS system are provided by resource branches.Since the data stored in Plist are to take out
As the file format used can be with more than one.
TeamName information refers to the specified file under iOS system.
Description file embedded.mobileprovision refers to the device description file in iOS exploitation, and there is card in the inside
Letter breath, the UUID information of commissioning device and date of certificate etc..
Embodiment two,
The method that a kind of pair of iOS system application of the present invention is signed again, on the basis of step pointed in embodiment one, also
It may include following steps, as shown in Fig. 2 process total figure.
S1, the file for decompressing the entitled ipa of suffix;
Entitlements.plist the file information is extracted in S2, the file after decompressing in S1;
S3, the new version number that ipa is set;
Sa1, the plug-in unit for being appex with the presence or absence of suffix;
Sa2, if it exists, then extract its plist the file information, if otherwise jumping to Sb1;
Sa3, it is signed again to the plug-in unit that suffix is appex, jumps to Sb1.
Sb1, using whether indicated release number, if then jumping to S3;
If it is not, then adding 1 to be used as new version number last position of original version number in Sb2, Sb1, then jump to S3.
Sc1, whether formulate mobileprovision and describe file, if then jumping to S4;
If it is not, then describing to read in file from existing embedded.mobileprovision in Sc2, Sc1
TeamName information, and Sd is jumped to, delete old signature file.
S4, TeamName information is read,
S5, the description file of entitled embedded.mobileprovision is replaced with into new description file;
Sd, old signature file is deleted.Space can be saved and be more succinct clear, step of file in file packet
It can omit.
S6, it is signed again to the file that suffix is entitled app;
Se printed signature verification information.
S7, the file for repacking app;
S8, remove intermediate file, including Payload file, entitlements.plist file,
AppThinning.plist file, plist message file of Appex etc.;
S9, signature terminates again.
Further, Sb1 and two step of Sb2 can be constraint term, i.e. it is inserting for appex that suffix is judged whether there is in Sa1
Part can also jump directly to S3 if not, and same Sa3 signs again to the plug-in unit that suffix is appex, jump directly to S3.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.
Claims (7)
1. the method that a kind of pair of iOS system application is signed again, which comprises the following steps:
S1, the file for decompressing the entitled ipa of suffix;
Entitlements.plist the file information is extracted in S2, the file after decompressing in S1;
S3, the new version number that ipa is set;
S4, TeamName information is read,
S5, the description file of entitled embedded.mobileprovision is replaced with into new description file;
S6, it is signed again to the file that suffix is entitled app;
S7, the file for repacking app;
S8, intermediate file is removed;
S9, signature terminates again.
2. the method that a kind of pair of iOS system application as described in claim 1 is signed again, which is characterized in that
The step S2 to S3 further includes following step,
Sa1, the plug-in unit for being appex with the presence or absence of suffix;
Sa2, if it exists, then extract its plist the file information, if otherwise jumping to S3;
Sa3, it is signed again to the plug-in unit that suffix is appex, jumps to S3.
3. the method that a kind of pair of iOS system application as claimed in claim 2 is signed again, which is characterized in that
The step Sa3 to S3 further includes following step,
Sb1, using whether indicated release number, if then jumping to S3;
If it is not, then adding 1 to be used as new version number last position of original version number in Sb2, Sb1, then jump to S3.
4. the method that a kind of pair of iOS system application as claimed in claim 2 is signed again, which is characterized in that if in step Sa2
It is no, can also it jump to following step:
Sb1, using whether indicated release number, if then jumping to S3;
If it is not, then adding 1 to be used as new version number last position of original version number in Sb2, Sb1, then jump to S3.
5. the method that a kind of pair of iOS system application as described in claim 1 is signed again, which is characterized in that
The step S3 to S4 further includes following step,
Sc1, whether formulate mobileprovision and describe file, if then jumping to S4;
If it is not, then describing to read TeamName letter in file from existing embedded.mobileprovision in Sc2, Sc1
Breath, and old signature file can be directly deleted, go to step S6.
6. the method that a kind of pair of iOS system application as described in claim 1 is signed again, which is characterized in that
The step S5 to S6 further includes following step,
Sd, old signature file is deleted.
7. the method that a kind of pair of iOS system application as described in claim 1 is signed again, which is characterized in that
The step S6 to S7 further includes following step,
Se printed signature verification information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910567557.6A CN110348178A (en) | 2019-06-27 | 2019-06-27 | The method that a kind of pair of iOS system application is signed again |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910567557.6A CN110348178A (en) | 2019-06-27 | 2019-06-27 | The method that a kind of pair of iOS system application is signed again |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110348178A true CN110348178A (en) | 2019-10-18 |
Family
ID=68176751
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910567557.6A Pending CN110348178A (en) | 2019-06-27 | 2019-06-27 | The method that a kind of pair of iOS system application is signed again |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110348178A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111274459A (en) * | 2020-01-19 | 2020-06-12 | 福建天晴在线互动科技有限公司 | Method and terminal for preventing re-signing of IPA installation package |
CN113094659A (en) * | 2021-03-17 | 2021-07-09 | 青岛海尔科技有限公司 | Method, device, platform equipment and system for publishing application file |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150200784A1 (en) * | 2014-01-13 | 2015-07-16 | Samsung Electronics Co., Ltd. | Device and method for re-signing application package, and terminal device for running application package |
CN105574369A (en) * | 2015-12-14 | 2016-05-11 | 网易(杭州)网络有限公司 | Method, device and system for re-signing application program |
US9537869B2 (en) * | 2011-02-11 | 2017-01-03 | Blue Cedar Networks, Inc. | Geographical restrictions for application usage on a mobile device |
CN106845162A (en) * | 2016-12-20 | 2017-06-13 | 北京五八信息技术有限公司 | A kind of heavy endorsement method and device |
CN109426515A (en) * | 2017-09-04 | 2019-03-05 | 中兴通讯股份有限公司 | The generation method and device of upgrade package |
-
2019
- 2019-06-27 CN CN201910567557.6A patent/CN110348178A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9537869B2 (en) * | 2011-02-11 | 2017-01-03 | Blue Cedar Networks, Inc. | Geographical restrictions for application usage on a mobile device |
US20150200784A1 (en) * | 2014-01-13 | 2015-07-16 | Samsung Electronics Co., Ltd. | Device and method for re-signing application package, and terminal device for running application package |
CN105574369A (en) * | 2015-12-14 | 2016-05-11 | 网易(杭州)网络有限公司 | Method, device and system for re-signing application program |
CN106845162A (en) * | 2016-12-20 | 2017-06-13 | 北京五八信息技术有限公司 | A kind of heavy endorsement method and device |
CN109426515A (en) * | 2017-09-04 | 2019-03-05 | 中兴通讯股份有限公司 | The generation method and device of upgrade package |
Non-Patent Citations (1)
Title |
---|
IREMARK: "iOS APP 重签名", 《HTTPS://WWW.CNBLOGS.COM/SAYTOME/P/8608296.HTML》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111274459A (en) * | 2020-01-19 | 2020-06-12 | 福建天晴在线互动科技有限公司 | Method and terminal for preventing re-signing of IPA installation package |
CN111274459B (en) * | 2020-01-19 | 2022-08-09 | 福建天晴在线互动科技有限公司 | Method and terminal for preventing re-signing of IPA installation package |
CN113094659A (en) * | 2021-03-17 | 2021-07-09 | 青岛海尔科技有限公司 | Method, device, platform equipment and system for publishing application file |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102693305B (en) | A kind of fileinfo method for previewing and system | |
CN104052818B (en) | The version upgrading method and device of a kind of mobile terminal | |
CN102663286B (en) | Method and device for identifying virus APK (android package) | |
CN102663285B (en) | Extracting method and extracting device for APK (android package) virus characteristic code | |
CN101706725B (en) | Method and system for loading and debugging relocatable program | |
CN110348178A (en) | The method that a kind of pair of iOS system application is signed again | |
CN104346184A (en) | Application packaging device and application packaging method | |
US10067753B2 (en) | Application program uninstallation method and apparatus | |
CN106055375B (en) | Application program installation method and device | |
CN110321669A (en) | Method, apparatus, equipment and the storage medium that application program is signed again | |
CN106502883A (en) | The database synchronization method and system of client and service end during automatic test | |
CN105574000A (en) | Method and device for expanding APK (Android Package) file application | |
CN104516755A (en) | Installation package generating method and device | |
CN111427583A (en) | Component compiling method and device, electronic equipment and computer readable storage medium | |
CN104572238A (en) | Method and system for generating executable software package efficiently | |
CN109670129A (en) | A kind of method and device for switching to html web page to be adapted to MIP format | |
Michelon et al. | Mining feature revisions in highly-configurable software systems | |
US20190073198A1 (en) | Multi-flavored software execution from a singular code base | |
CN108376333B (en) | File approval method, medium, device and computing equipment | |
CN104572140B (en) | A kind of method, apparatus and system of operating system transplantation | |
CN110244968B (en) | Charging station management system and method | |
CN109508211A (en) | A kind of multilingual configuration method, device, system and electronic equipment | |
CN111444085A (en) | Test method, test device and related equipment | |
CN104539697B (en) | A kind of client, server and the method for making Android mobile application | |
CN108733357A (en) | Store method, apparatus, equipment and the computer readable storage medium of picture |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191018 |