CN112860309A - Static library calling method, device, equipment and storage medium based on iOS - Google Patents
Static library calling method, device, equipment and storage medium based on iOS Download PDFInfo
- Publication number
- CN112860309A CN112860309A CN202110123261.2A CN202110123261A CN112860309A CN 112860309 A CN112860309 A CN 112860309A CN 202110123261 A CN202110123261 A CN 202110123261A CN 112860309 A CN112860309 A CN 112860309A
- Authority
- CN
- China
- Prior art keywords
- static library
- interface
- configuration data
- ios
- protocol
- 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.)
- Granted
Links
- 230000003068 static effect Effects 0.000 title claims abstract description 224
- 238000000034 method Methods 0.000 title claims abstract description 45
- 239000010979 ruby Substances 0.000 claims description 4
- 229910001750 ruby Inorganic materials 0.000 claims description 4
- 238000004590 computer program Methods 0.000 claims 2
- 238000012545 processing Methods 0.000 abstract description 4
- 230000006870 function Effects 0.000 description 26
- 238000011161 development Methods 0.000 description 15
- 238000010586 diagram Methods 0.000 description 7
- 238000012795 verification Methods 0.000 description 5
- 239000000243 solution Substances 0.000 description 4
- 238000002347 injection Methods 0.000 description 1
- 239000007924 injection Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 230000003252 repetitive effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Stored Programmes (AREA)
Abstract
The invention relates to the field of data processing, and discloses a static library calling method, a static library calling device, static library calling equipment and a storage medium based on iOS. The method comprises the following steps: receiving a calling instruction, wherein the calling instruction comprises: protocol character string, interface name; reading a static library set in a preset CocoaPods warehouse, and matching a static library corresponding to the protocol character string in the static library set according to the protocol character string to obtain a target static library; matching interface configuration data corresponding to the interface name in a preset interface management table; and analyzing the target static library according to the interface configuration data to obtain target configuration data.
Description
Technical Field
The invention relates to the field of data processing, in particular to a static library calling method, a static library calling device, static library calling equipment and a storage medium based on iOS.
Background
With the rapid development of App application, the types of products on the market are more and more abundant, the market competition is more and more intense, and the development of one App from project establishment to online requires 1-6 months on average and even longer. The development cost problem is always one of the main factors to be considered by medium and small enterprises and individual developers, and the existing internet enterprises are difficult to survive only by one product and need to find the next profit point among a plurality of products. At this time, basic capability and common functions among multiple products need to be multiplexed.
However, there is a dependency of the CocoaPods tool in the development of the iOS system in managing the Xcode engineering better, but at present, the storage application in one system is limited, and it is unlikely that all product functions can be realized, and when meeting the requirements of different functions, the application needs to be re-developed, so that a method capable of adaptively enabling the application to support the basic capabilities is needed, and the development cost and the development time are reduced to improve the whole engineering efficiency.
Disclosure of Invention
The invention mainly aims to solve the technical problem that the time for developing the repetitive function of the App product is too long.
The invention provides a static library calling method based on iOS in a first aspect, which comprises the following steps:
receiving a calling instruction, wherein the calling instruction comprises: protocol character string, interface name;
reading a static library set in a preset CocoaPods warehouse, and matching a static library corresponding to the protocol character string in the static library set according to the protocol character string to obtain a target static library;
matching interface configuration data corresponding to the interface name in a preset interface management table;
and analyzing the target static library according to the interface configuration data to obtain target configuration data.
Optionally, in a first implementation manner of the first aspect of the present invention, the receiving a call instruction includes:
receiving a calling instruction sent by a public network IP address;
reading a preset permission IP address table, and judging whether the public network IP address belongs to the permission IP address table;
if yes, analyzing the calling instruction;
if not, sending an unlicensed notification message to the public network IP address.
Optionally, in a second implementation manner of the first aspect of the present invention, after analyzing the target static library according to the interface configuration data to obtain target configuration data, the method further includes:
and sending the target configuration data to the public network IP address.
Optionally, in a third implementation manner of the first aspect of the present invention, after analyzing the target static library according to the interface configuration data to obtain target configuration data, the method further includes:
compiling the target configuration data based on a preset ruby script and a CocoaPods tool to generate binary data;
transmitting the binary data to an address of the iOS application store.
Optionally, in a fourth implementation manner of the first aspect of the present invention, the matching, in the preset interface management table, the interface configuration data corresponding to the interface name includes:
accessing a preset cloud database to obtain an updated interface management table;
judging whether the hash values of the updated interface management table and the preset interface management table are consistent or not;
if not, replacing the updated interface management table with the interface management table, and matching interface configuration data corresponding to the interface name in the interface management table;
and if the interface configuration data are consistent, the interface configuration data corresponding to the interface name are matched in the interface management table.
Optionally, in a fifth implementation manner of the first aspect of the present invention, the reading a static library set in a preset CocoaPods repository, and matching a static library corresponding to the protocol character string in the static library set according to the protocol character string to obtain a target static library includes:
reading a static library set in a preset Podfile file;
matching the static library name and the static library version number in the static library set according to the protocol character string to obtain a protocol static library name and a protocol static library version number;
inquiring a static library source address in the static library set according to the protocol static library name and the protocol static library version number;
and accessing the static library source address to obtain a target static library.
Optionally, in a sixth implementation manner of the first aspect of the present invention, after analyzing the target static library according to the interface configuration data to obtain target configuration data, the method further includes:
acquiring code data to be statically warehoused;
converting the code data into a code static library to generate a code protocol character string and a code protocol interface;
setting the code protocol character string as the label data of the code static library, and adding the code protocol interface into the interface management table;
copying the code static library into the static library set.
A second aspect of the present invention provides an iOS-based static library calling apparatus, including:
a receiving module, configured to receive a call instruction, where the call instruction includes: protocol character string, interface name;
the reading module is used for reading a static library set in a preset CocoaPods warehouse and matching a static library corresponding to the protocol character string in the static library set according to the protocol character string to obtain a target static library;
the matching module is used for matching the interface configuration data corresponding to the interface name in a preset interface management table;
and the analysis module is used for analyzing the target static library according to the interface configuration data to obtain target configuration data.
A third aspect of the present invention provides an iOS-based static library calling apparatus, including: a memory having instructions stored therein and at least one processor, the memory and the at least one processor interconnected by a line; the at least one processor calls the instructions in the memory to cause the iOS-based static library call apparatus to execute the iOS-based static library call method described above.
A fourth aspect of the present invention provides a computer-readable storage medium having stored therein instructions, which, when run on a computer, cause the computer to execute the above-described iOS-based static library invocation method.
Drawings
FIG. 1 is a diagram of a first embodiment of an iOS-based static library invocation method according to an embodiment of the present invention;
FIG. 2 is a diagram of a second embodiment of an iOS-based static library invocation method according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a third embodiment of an iOS-based static library invocation method according to an embodiment of the present invention;
FIG. 4 is a diagram of an embodiment of an iOS-based static library invocation mechanism in accordance with an embodiment of the present invention;
FIG. 5 is a diagram of another embodiment of an iOS-based static library invocation mechanism in an embodiment of the present invention;
fig. 6 is a schematic diagram of an embodiment of an iOS-based static library invocation device in the embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a static library calling method, a static library calling device, static library calling equipment and a storage medium based on iOS.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," or "having," and any variations thereof, are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of understanding, a specific flow of the embodiment of the present invention is described below, and referring to fig. 1, a first embodiment of the iOS-based static library calling method in the embodiment of the present invention includes:
101. receiving a calling instruction, wherein the calling instruction comprises: protocol character string, interface name;
in this embodiment, when a call instruction needs to use a certain function, an already packaged static library is called from a container repository, where the static library has some information such as a name, a version number, a storage path link, and the like, and the static library may be a local storage or an internet service call, for example, a static library function that is externally disclosed is directly called from a website on gitxxb, so that the development speed is increased, and part of functions do not need to be repeatedly developed.
102. Reading a static library set in a preset CocoaPods warehouse, and matching a static library corresponding to the protocol character string in the static library set according to the protocol character string to obtain a target static library;
in this embodiment, the static library set stored in the CocoaPods repository is a transit set, and is used to interface a set table of each static library, different static library storage link addresses can be set in the static library set to perform association recording, a static library name, a version number, and a library source address link exist in a protocol string, a static library in the library source address is found by matching the library name and the version number of the static library set, the static library can be directly run on other servers, and the static library can also be downloaded to a local server and a target static library can be run locally.
103. Matching interface configuration data corresponding to the interface name in a preset interface management table;
in this embodiment, the interface configuration data is a key of the target static library, the protocol class is converted into a character string as a key to acquire an object and a class, the injection step can be written in a + load method in the function class, the + load method can be automatically executed as the class is loaded into the memory, an earlier initialization opportunity is provided, the acquired object needs to be converted into a corresponding protocol type, and any capability in the container can be used at any place of the program.
104. And analyzing the target static library according to the interface configuration data to obtain target configuration data.
In this embodiment, the called function first acquires the container object. The class or object that implements this function is found by passing the protocol call as an entry to the container object. And limited by the way of the development language, if the development language is a strong type development language, the data type needs to be converted and called if necessary.
In the embodiment of the invention, the static library stored in the CocoaPods warehouse is called through the instruction, the basic function data is called based on various access calls and key verification, the calling process time is not reduced, the time for repeatedly developing the basic function of the App is reduced, the repeated calling of the use function in the Xcode engineering is realized, and the development time is reduced.
Referring to fig. 2, a second embodiment of the iOS-based static library invocation method according to the embodiment of the present invention includes:
201. receiving a calling instruction sent by a public network IP address, wherein the calling instruction comprises: protocol character string, interface name;
in this embodiment, the public network IP address may be sent by a mobile terminal of a notebook computer or a mobile phone device, and a specific protocol string and an interface name are specified in the call instruction, that is, the captured object.
202. Reading a preset permission IP address table, and judging whether the public network IP address belongs to the permission IP address table;
in this embodiment, the permission IP address table is a preset address table that allows a call IP address to be issued, and if in the permission table, an operation of a call instruction can be performed. If not in the permission table, the operation of the call instruction cannot be performed.
203. If yes, analyzing the calling instruction;
in this embodiment, if the public network IP address is an allowed public network address, the protocol string and the interface name in the call instruction are resolved.
204. If not, sending an unlicensed notification message to the public network IP address;
in this embodiment, if the address does not belong to the allowed public network address, the public network IP address is notified that the call operation cannot be performed based on the TCP/IP protocol.
205. Reading a static library set in a preset CocoaPods warehouse, and matching a static library corresponding to the protocol character string in the static library set according to the protocol character string to obtain a target static library;
206. matching interface configuration data corresponding to the interface name in a preset interface management table;
207. analyzing the target static library according to the interface configuration data to obtain target configuration data;
embodiments 205-207 have been described in the first embodiment, and are not described herein.
208. And sending the target configuration data to the public network IP address.
In this embodiment, the value values in the obtained static library are packaged and sent to a mobile phone, a notebook computer, a desktop computer at a different location, or the like, which needs to be called.
In the embodiment of the invention, the static library stored in the CocoaPods warehouse is called through the instruction, the basic function data is called based on various access calls and key verification, the calling process time is not reduced, the time for repeatedly developing the basic function of the App is reduced, the repeated calling of the use function in the Xcode engineering is realized, and the development time is reduced.
Referring to fig. 3, a third embodiment of the iOS-based static library invocation method according to the embodiment of the present invention includes:
301. receiving a calling instruction, wherein the calling instruction comprises: protocol character string, interface name;
this embodiment is similar to the first embodiment, please refer to the first embodiment, which is not described herein.
302. Reading a static library set in a preset Podfile file;
in this embodiment, the static library set in the Podfile file in the CocoaPods repository is called.
303. Matching the static library name and the static library version number in the static library set according to the protocol character string to obtain a protocol static library name and a protocol static library version number;
in this embodiment, the static library name and the version number in the static library set are used as features to determine an independent static library, and the corresponding protocol static library name and the protocol static library version number are matched according to the content of the protocol string in the instruction, and the query function of the SQL database can be directly used for implementation in the matching.
304. Inquiring a static library source address in the static library set according to the protocol static library name and the protocol static library version number;
in this embodiment, the static library set is already positioned to a required static library position according to the protocol static library name and the protocol static library version number, the corresponding static library source address is already locked, and the queried object is determined to the static library source address.
305. Accessing the static library source address to obtain a target static library;
in this embodiment, a static library source address is accessed, where the static library source address may be a network address such as a gitXXb website, or a local disk storage address, and a target static library is obtained by downloading from the address.
306. Accessing a preset cloud database to obtain an updated interface management table;
in this embodiment, at this time, the target static library cannot be read yet, interface configuration is required, and interface configuration data is matched from the interface name in the instruction. But it needs to detect whether the interface management content is updated in the cloud.
307. Judging whether the hash values of the updated interface management table and the preset interface management table are consistent or not;
in this embodiment, a hash check is used to check whether the interface management table has been modified.
308. If not, replacing the updated interface management table with the interface management table, and matching interface configuration data corresponding to the interface name in the interface management table;
in this embodiment, if the interface configuration data is changed, the latest interface management table in the cloud is replaced, and the required interface configuration data is queried from the interface management table.
309. If the interface configuration data is consistent with the interface configuration data, the interface configuration data corresponding to the interface name is matched in the interface management table;
in this embodiment, if the hash check is consistent, the locally stored interface management table is used.
310. Compiling the target configuration data based on a preset ruby script and a CocoaPods tool to generate binary data;
in the present embodiment, binary data is derived using the Xcode compilation tool according to the iOS program.
311. Transmitting the binary data to an address of an iOS application store;
in the present embodiment, binary data is transmitted to the iOS application store for distribution processing.
312. Acquiring code data to be statically warehoused;
in this embodiment, a piece of code data that requires a static library is obtained.
313. Converting the code data into a code static library to generate a code protocol character string and a code protocol interface;
in this embodiment, when the static library is converted, the protocol character string and the interface name of the code are generated correspondingly.
314. Setting the code protocol character string as the label data of the code static library, and adding the code protocol interface into the interface management table;
in this embodiment, the protocol string is set as the tag content of the static library, and the interface protocol is added to the management table, thereby completing the static setting of the code.
315. Copying the code static library into the static library set.
In this embodiment, if the code static library is stored locally, the associated address in the disk is copied into the static library set.
In the embodiment of the invention, the static library stored in the CocoaPods warehouse is called through the instruction, the basic function data is called based on various access calls and key verification, the calling process time is not reduced, the time for repeatedly developing the basic function of the App is reduced, the repeated calling of the use function in the Xcode engineering is realized, and the development time is reduced.
In the above description of the static library invoking method based on iOS in the embodiment of the present invention, referring to fig. 4, the static library invoking device based on iOS in the embodiment of the present invention is described below, and an embodiment of the static library invoking device based on iOS in the embodiment of the present invention includes:
a receiving module 401, configured to receive a call instruction, where the call instruction includes: protocol character string, interface name;
a reading module 402, configured to read a static library set in a preset CocoaPods warehouse, and match a static library corresponding to the protocol character string in the static library set according to the protocol character string to obtain a target static library;
a matching module 403, configured to match interface configuration data corresponding to the interface name in a preset interface management table;
and the analysis module 404 is configured to analyze the target static library according to the interface configuration data to obtain target configuration data.
In the embodiment of the invention, the static library stored in the CocoaPods warehouse is called through the instruction, the basic function data is called based on various access calls and key verification, the calling process time is not reduced, the time for repeatedly developing the basic function of the App is reduced, the repeated calling of the use function in the Xcode engineering is realized, and the development time is reduced.
Referring to fig. 5, another embodiment of the iOS-based static library calling apparatus according to the embodiment of the present invention includes:
a receiving module 401, configured to receive a call instruction, where the call instruction includes: protocol character string, interface name;
a reading module 402, configured to read a static library set in a preset CocoaPods warehouse, and match a static library corresponding to the protocol character string in the static library set according to the protocol character string to obtain a target static library;
a matching module 403, configured to match interface configuration data corresponding to the interface name in a preset interface management table;
and the analysis module 404 is configured to analyze the target static library according to the interface configuration data to obtain target configuration data.
Wherein the receiving module 401 is specifically configured to:
receiving a calling instruction sent by a public network IP address;
reading a preset permission IP address table, and judging whether the public network IP address belongs to the permission IP address table;
if yes, analyzing the calling instruction;
if not, sending an unlicensed notification message to the public network IP address.
The iOS-based static library calling apparatus further includes a notification module 405, where the notification module 405 is specifically configured to:
and sending the target configuration data to the public network IP address.
The iOS-based static library calling apparatus further includes a compiling module 406, where the compiling module 406 is specifically configured to:
compiling the target configuration data based on a preset ruby script and a CocoaPods tool to generate binary data;
transmitting the binary data to an address of the iOS application store.
Wherein the matching module 403 is specifically configured to:
accessing a preset cloud database to obtain an updated interface management table;
judging whether the hash values of the updated interface management table and the preset interface management table are consistent or not;
if not, replacing the updated interface management table with the interface management table, and matching interface configuration data corresponding to the interface name in the interface management table;
and if the interface configuration data are consistent, the interface configuration data corresponding to the interface name are matched in the interface management table.
Wherein the reading module 402 is specifically configured to:
reading a static library set in a preset Podfile file;
matching the static library name and the static library version number in the static library set according to the protocol character string to obtain a protocol static library name and a protocol static library version number;
inquiring a static library source address in the static library set according to the protocol static library name and the protocol static library version number;
and accessing the static library source address to obtain a target static library.
The iOS-based static library calling device further includes a static library adding module 407, where the static library adding module 407 is specifically configured to:
acquiring code data to be statically warehoused;
converting the code data into a code static library to generate a code protocol character string and a code protocol interface;
setting the code protocol character string as the label data of the code static library, and adding the code protocol interface into the interface management table;
copying the code static library into the static library set.
In the embodiment of the invention, the static library stored in the CocoaPods warehouse is called through the instruction, the basic function data is called based on various access calls and key verification, the calling process time is not reduced, the time for repeatedly developing the basic function of the App is reduced, the repeated calling of the use function in the Xcode engineering is realized, and the development time is reduced.
Fig. 4 and 5 describe the iOS-based static library calling apparatus in the embodiment of the present invention in detail from the perspective of the modular functional entity, and the iOS-based static library calling apparatus in the embodiment of the present invention is described in detail from the perspective of the hardware processing.
Fig. 6 is a schematic structural diagram of an iOS-based static library call apparatus 600 according to an embodiment of the present invention, which may have a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 610 (e.g., one or more processors) and a memory 620, one or more storage media 630 (e.g., one or more mass storage devices) for storing applications 633 or data 632. Memory 620 and storage medium 630 may be, among other things, transient or persistent storage. The program stored in the storage medium 630 may include one or more modules (not shown), each of which may include a series of instruction operations in the iOS-based static library invocation apparatus 600. Still further, the processor 610 may be configured to communicate with the storage medium 630 to execute a series of instruction operations in the storage medium 630 on the iOS-based static library invocation apparatus 600.
The iOS-based static library invocation apparatus 600 may also include one or more power supplies 640, one or more wired or wireless network interfaces 650, one or more input-output interfaces 660, and/or one or more operating systems 631, such as Windows server, Mac OS X, Unix, Linux, FreeBSD, and the like. Those skilled in the art will appreciate that the iOS based static library call device architecture shown in fig. 6 does not constitute a limitation of the iOS based static library call device and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
The present invention also provides a computer readable storage medium, which may be a non-volatile computer readable storage medium, and which may also be a volatile computer readable storage medium, having stored therein instructions, which, when run on a computer, cause the computer to perform the steps of the iOS based static library invocation method.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses, and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. An iOS-based static library calling method is characterized by comprising the following steps:
receiving a calling instruction, wherein the calling instruction comprises: protocol character string, interface name;
reading a static library set in a preset CocoaPods warehouse, and matching a static library corresponding to the protocol character string in the static library set according to the protocol character string to obtain a target static library;
matching interface configuration data corresponding to the interface name in a preset interface management table;
and analyzing the target static library according to the interface configuration data to obtain target configuration data.
2. The iOS-based static library calling method of claim 1, wherein the receiving a call instruction comprises:
receiving a calling instruction sent by a public network IP address;
reading a preset permission IP address table, and judging whether the public network IP address belongs to the permission IP address table;
if yes, analyzing the calling instruction;
if not, sending an unlicensed notification message to the public network IP address.
3. The iOS-based static library calling method of claim 2, further comprising, after the parsing the target static library according to the interface configuration data to obtain target configuration data:
and sending the target configuration data to the public network IP address.
4. The iOS-based static library calling method of claim 1, further comprising, after the parsing the target static library according to the interface configuration data to obtain target configuration data:
compiling the target configuration data based on a preset ruby script and a CocoaPods tool to generate binary data;
transmitting the binary data to an address of the iOS application store.
5. The iOS-based static library calling method of claim 1, wherein the matching of the interface configuration data corresponding to the interface name in a preset interface management table comprises:
accessing a preset cloud database to obtain an updated interface management table;
judging whether the hash values of the updated interface management table and the preset interface management table are consistent or not;
if not, replacing the updated interface management table with the interface management table, and matching interface configuration data corresponding to the interface name in the interface management table;
and if the interface configuration data are consistent, the interface configuration data corresponding to the interface name are matched in the interface management table.
6. The iOS-based static library calling method according to claim 1, wherein the reading a static library set in a preset CocoaPods repository, and according to the protocol string, matching a static library corresponding to the protocol string in the static library set to obtain a target static library comprises:
reading a static library set in a preset Podfile file;
matching the static library name and the static library version number in the static library set according to the protocol character string to obtain a protocol static library name and a protocol static library version number;
inquiring a static library source address in the static library set according to the protocol static library name and the protocol static library version number;
and accessing the static library source address to obtain a target static library.
7. The iOS-based static library calling method of claim 1, further comprising, after the parsing the target static library according to the interface configuration data to obtain target configuration data:
acquiring code data to be statically warehoused;
converting the code data into a code static library to generate a code protocol character string and a code protocol interface;
setting the code protocol character string as the label data of the code static library, and adding the code protocol interface into the interface management table;
copying the code static library into the static library set.
8. An iOS-based static library calling apparatus, characterized in that the iOS-based static library calling apparatus comprises:
a receiving module, configured to receive a call instruction, where the call instruction includes: protocol character string, interface name;
the reading module is used for reading a static library set in a preset CocoaPods warehouse and matching a static library corresponding to the protocol character string in the static library set according to the protocol character string to obtain a target static library;
the matching module is used for matching the interface configuration data corresponding to the interface name in a preset interface management table;
and the analysis module is used for analyzing the target static library according to the interface configuration data to obtain target configuration data.
9. An iOS-based static library calling apparatus, characterized in that the iOS-based static library calling apparatus comprises: a memory having instructions stored therein and at least one processor, the memory and the at least one processor interconnected by a line;
the at least one processor invokes the instructions in the memory to cause the iOS-based static library call apparatus to perform the iOS-based static library call method of any of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the iOS-based static library call method as recited in any of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110123261.2A CN112860309B (en) | 2021-01-29 | 2021-01-29 | Static library calling method, device, equipment and storage medium based on iOS |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110123261.2A CN112860309B (en) | 2021-01-29 | 2021-01-29 | Static library calling method, device, equipment and storage medium based on iOS |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112860309A true CN112860309A (en) | 2021-05-28 |
CN112860309B CN112860309B (en) | 2024-04-16 |
Family
ID=75987898
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110123261.2A Active CN112860309B (en) | 2021-01-29 | 2021-01-29 | Static library calling method, device, equipment and storage medium based on iOS |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112860309B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104252513A (en) * | 2013-11-11 | 2014-12-31 | 新华瑞德(北京)网络科技有限公司 | File caching device, system and method |
CN108614696A (en) * | 2016-12-08 | 2018-10-02 | 腾讯科技(深圳)有限公司 | The method and device that a kind of method that application makes, static library generate |
CN109460528A (en) * | 2018-09-29 | 2019-03-12 | 中国平安财产保险股份有限公司 | Quotation system webpage loading method, device, computer equipment and storage medium |
CN109815650A (en) * | 2019-01-18 | 2019-05-28 | 北京智游网安科技有限公司 | The method, apparatus and medium of framework are called based on iOS |
CN111209062A (en) * | 2020-01-11 | 2020-05-29 | 阿里巴巴集团控股有限公司 | Information acquisition method and device, electronic equipment and computer storage medium |
CN112256321A (en) * | 2020-11-18 | 2021-01-22 | 腾讯科技(深圳)有限公司 | Static library packaging method and device, computer equipment and storage medium |
-
2021
- 2021-01-29 CN CN202110123261.2A patent/CN112860309B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104252513A (en) * | 2013-11-11 | 2014-12-31 | 新华瑞德(北京)网络科技有限公司 | File caching device, system and method |
CN108614696A (en) * | 2016-12-08 | 2018-10-02 | 腾讯科技(深圳)有限公司 | The method and device that a kind of method that application makes, static library generate |
CN109460528A (en) * | 2018-09-29 | 2019-03-12 | 中国平安财产保险股份有限公司 | Quotation system webpage loading method, device, computer equipment and storage medium |
CN109815650A (en) * | 2019-01-18 | 2019-05-28 | 北京智游网安科技有限公司 | The method, apparatus and medium of framework are called based on iOS |
CN111209062A (en) * | 2020-01-11 | 2020-05-29 | 阿里巴巴集团控股有限公司 | Information acquisition method and device, electronic equipment and computer storage medium |
CN112256321A (en) * | 2020-11-18 | 2021-01-22 | 腾讯科技(深圳)有限公司 | Static library packaging method and device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112860309B (en) | 2024-04-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108156022B (en) | Service calling method and device and electronic equipment | |
CN110569035B (en) | Code compiling method, device, equipment and storage medium of software development project | |
CN111723313A (en) | Page jump processing method, device, equipment and storage medium | |
US20070198705A1 (en) | System and method for integrating resources in a network | |
CN111694613B (en) | Decoupling method between application program modules, electronic device and storage medium | |
CN110324209B (en) | Micro-service system monitoring method and device, electronic equipment and computer readable medium | |
CN112769706B (en) | Componentized routing method and system | |
US12061901B2 (en) | Documentation enforcement during compilation | |
CN115686606A (en) | Method, device, system and medium for displaying item dependency tree | |
CN111352631B (en) | Interface compatibility detection method and device | |
CN110334031B (en) | Memory allocation code detection method and device, computer equipment and storage medium | |
CN111782239A (en) | Software packaging and source code version information acquisition method, device and storage medium | |
US8694596B2 (en) | Systems and methods for information brokering in software management | |
CN112035471A (en) | Transaction processing method and computer equipment | |
CN112860309B (en) | Static library calling method, device, equipment and storage medium based on iOS | |
CN111639248A (en) | Webpage data crawling method, device, equipment and storage medium | |
CN116342283A (en) | Trusted intelligent contract implementation method, device, equipment and readable storage medium | |
CN112559293B (en) | Application package monitoring method and device | |
CN115794220A (en) | Software source migration method, device and system, computing device and readable storage medium | |
CN114791884A (en) | Test environment construction method and device, storage medium and electronic equipment | |
CN110266762B (en) | Data uploading method, system, device and storage medium | |
CN114253595A (en) | Code warehouse management method and device, computer equipment and storage medium | |
JP7073813B2 (en) | Control programs, control methods and information processing equipment | |
CN114629807A (en) | Work order processing method, device and equipment | |
CN106570143B (en) | Method and device for sending response object |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |