Method, device and medium for generating apple mobile device application

By modifying the parameters of the compiler and linker, Apple mobile device applications can be compiled on non-MAC systems, solving the problems of development method limitations and high costs, improving efficiency and reducing costs.

CN120029626BActive Publication Date: 2025-12-12DONGGUAN XINGQIAO PUAI INFORMATION TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411872961.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-18
Publication Date
2025-12-12
Estimated Expiration
2044-12-18

AI Technical Summary

Technical Problem

Apple mobile device applications rely on the Mac operating system during the compilation process, which leads to high limitations in development methods, high costs, and significant time consumption.

Method used

By modifying the parameters of the compiler and linker, the source code of Apple mobile device applications can be directly generated into executable files on non-MAC systems, including modifying the SDK path, target device platform, and architecture parameters.

Benefits of technology

It improved the efficiency of software developers, reduced development costs, and simplified the development process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120029626B_ABST
    Figure CN120029626B_ABST
Patent Text Reader

Abstract

The application discloses a method, device, equipment and medium for generating an apple mobile device application program, and the method comprises the following steps: obtaining a source code of the apple mobile device application program; performing a compiling process on the source code, and modifying parameters of a compiler during the compiling process to obtain an intermediate file after compiling; performing a linking process on the intermediate file, and modifying parameters of a linker during the linking process to obtain an executable file of the apple mobile device application program. The application has the following effects: the related parameters in the compiler and the linker applied to the development process of the apple mobile device application program are modified, so that the source code of the apple mobile device application program can directly generate the executable file of the apple mobile device on a non-MAC system, the problem that the apple mobile device application program needs to rely on the Mac operating system for compiling is solved, the development efficiency is improved, and the development cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of apple mobile device application program, and particularly relates to an apple mobile device application program generation method and device, equipment and medium. BACKGROUND

[0002] The apple mobile device application program is mainly software designed and developed for apple mobile devices such as apple mobile phones, apple tablets, apple watches, apple televisions and apple headsets.

[0003] In the field of apple mobile device application development, the developers of the application program can write the source code of the apple mobile device application in different operating systems, but in the compilation stage, the source code can only be compiled into an executable target program on a Mac operating system or compiled on a non-Mac operating system with the aid of a virtualization tool, which leads to the limitation of the development method, rigidity, high development cost and time consumption.

[0004] Therefore, there is an urgent need for a new development method that can effectively utilize existing code and solve the problem of compiling on different platforms without relying on the Mac operating system. SUMMARY

[0005] The purpose of the present application is to provide an apple mobile device application program generation method, device, equipment and medium to solve the problem that the apple mobile device application program needs to rely on the Mac system for compilation in the related art.

[0006] To achieve the above purpose, the present application provides the following technical solutions:

[0007] In a first aspect, the present application provides an apple mobile device application program generation method, comprising: obtaining the source code of the apple mobile device application program; compiling and processing the source code, modifying the parameters of the compiler in the process of the compiling and processing, and obtaining the intermediate file after the compiling; linking the intermediate file, modifying the parameters of the linker in the process of the linking, and obtaining the executable file of the apple mobile device application program.

[0008] Further, the compiling and processing of the source code, the modification of the parameters of the compiler in the process of the compiling and processing, and the obtaining of the intermediate file after the compiling, comprise: modifying the SDK path parameter in the compiler, pointing the SDK path parameter to the path of the apple mobile device application SDK; modifying the target device platform parameter in the compiler, setting the value of the target device platform parameter to the value of the running device platform of the apple mobile device application program; and compiling the source code through the compiler after the modification of the parameters, obtaining the intermediate file after the compiling process.

[0009] Further, the intermediate file is subjected to a linking process, and parameters of a linker are modified during the linking process to obtain an executable file of the apple mobile device application, including: modifying an SDK path parameter in the linker to point to a path of an apple mobile device application SDK; modifying a target device architecture parameter in the linker to set the target device architecture parameter to an architecture value of a running platform of the apple mobile device application; and subjecting the intermediate file to the linking process by the linker after the modification of the parameters to obtain the executable file of the apple mobile device application.

[0010] Further, the types of the compiler include one or more; if the compiler includes a clang compiler or a gcc compiler, -isysroot and -target parameters are modified, and the modification includes: pointing the -isysroot parameter to the path of the apple mobile device application SDK; and setting the -target parameter to a value of a running device platform of the apple mobile device application; if the compiler includes a swiftc compiler, -sdk and -target parameters are modified, and the modification includes: pointing the -sdk parameter to the path of the apple mobile device application SDK; and setting the -target parameter to a value of a running device platform of the apple mobile device application.

[0011] Further, the types of the linker include one or more; if the linker includes an lld linker or an ld64 linker, -syslibroot and -arch parameters are modified, and the modification includes: setting the -syslibroot parameter to point to the path of the apple mobile device application SDK; and setting the -arch parameter to a value of an architecture of a running device platform of the apple mobile device application.

[0012] Further, the source code of the apple mobile device application is obtained, including: obtaining an SDK of the apple mobile device application; and developing and generating the source code of the apple mobile device application according to the SDK of the apple mobile device application.

[0013] Further, after the SDK of the apple mobile device application is obtained, the SDK is further subjected to preprocessing, and the preprocessing includes: format conversion processing, format line processing, or cross-platform compatibility processing.

[0014] In a second aspect, the application further provides a device for generating an apple mobile device application program, comprising: an obtaining module, configured to obtain source code of the apple mobile device application program; a compiling processing module, configured to perform compiling processing on the source code, and modify parameters of a compiler during the compiling processing to obtain an intermediate file after compiling; and a linking processing module, configured to perform linking processing on the intermediate file, and modify parameters of a linker during the linking processing to obtain an executable file of the apple mobile device application program.

[0015] Further, the compiling processing module is specifically configured to: modify an SDK path parameter in the compiler, and point the SDK path parameter to a path of an apple mobile device application SDK; modify a target device platform parameter in the compiler, and set a value of the target device platform parameter to a value of a running device platform of the apple mobile device application program; and perform compiling processing on the source code by using the compiler with the modified parameters to obtain an intermediate file after the compiling processing.

[0016] Further, the linking processing module is specifically configured to: modify an SDK path parameter in the linker, and point the SDK path parameter in the linker to a path of an apple mobile device application SDK; modify a target device architecture parameter in the linker, and set the target device architecture parameter in the linker to an architecture value of a running platform of the apple mobile device application program; and perform linking processing on the intermediate file by using the linker with the modified parameters to obtain the executable file of the apple mobile device application program.

[0017] Further, the obtaining module is specifically configured to: obtain an SDK of an apple mobile device application; and develop source code of the apple mobile device application program according to the SDK of the apple mobile device application.

[0018] Further, the obtaining module is further configured to: perform preprocessing on the SDK, and the preprocessing comprises: format conversion processing, format line processing, or cross-platform compatibility processing.

[0019] In a third aspect, the application further provides a computer electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements steps of the method for generating the apple mobile device application program according to any one of the above aspects when executing the computer program.

[0020] In a fourth aspect, the application further provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program implements steps of the method for generating the apple mobile device application program according to any one of the above aspects when executed by a processor.

[0021] The application provides a method, device, equipment and medium for generating an apple mobile device application program, the method comprises the following steps: obtaining source code of the apple mobile device application program; obtaining the source code of the apple mobile device application program; performing compilation processing on the source code, and modifying parameters of a compiler in the process of the compilation processing to obtain an intermediate file after compilation;

[0022] performing linking processing on the intermediate file, and modifying parameters of a linker in the process of the linking processing to obtain an executable file of the apple mobile device application program. Compared with the related art, the application has the following effects: by modifying the related parameters in the compiler and the linker applied to the development process of the apple mobile device application program, the source code of the apple mobile device application program can be directly used to generate the executable file of the apple mobile device on a non-MAC system. The problem that the apple mobile device application program needs to rely on the Mac operating system for compilation is solved, which not only improves the work efficiency of the program developers, but also reduces the development cost, simplifies the development system, and optimizes the development process. BRIEF DESCRIPTION OF DRAWINGS

[0023] Figure 1 FIG. 1 is a flow diagram of a method for generating an apple mobile device application program according to an embodiment of the application;

[0024] Figure 2 FIG. 2 is a structural diagram of a device for generating an apple mobile device application program according to an embodiment of the application;

[0025] Figure 3 FIG. 3 is a structural diagram of a computer electronic device according to an embodiment of the application. DETAILED DESCRIPTION

[0026] The technical solutions in the embodiments of the application will be clearly and completely described below with reference to the drawings in the embodiments of the application. Obviously, the described embodiments are only part of the embodiments of the application, rather than all the embodiments of the application. Based on the embodiments in the application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the application.

[0027] It should be noted that when an element is referred to as being "fixed" to another element, it can be directly on the other element or there can be an intervening element. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements can be present. In contrast, when an element is referred to as being "directly on" another element, there are no intervening elements present. The terms "vertical", "horizontal", "left", "right", and the like as used herein are used for illustration only and do not limit the position of the elements.

[0028] In this application, unless otherwise explicitly specified and limited, the terms "mounting", "connection", "connecting", "fixed", and the like, should be interpreted broadly, for example, can be fixed connection, can also be detachable connection, or integral; can be mechanical connection, can also be electrical connection; can be directly connected, can also be indirectly connected through an intermediate medium, can be internal communication of two elements or interaction relationship between two elements. For those skilled in the art, the specific meaning of the above terms in this application can be understood according to the specific circumstances.

[0029] In addition, the terms "first", "second" are only for descriptive purposes and should not be construed as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined with "first", "second" can explicitly or implicitly include one or more of the features. In the description of the present application, the meaning of "multiple" is two or more, unless otherwise explicitly specified and limited.

[0030] The terms used in one or more embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of the present application. The singular forms "a", "said" and "the" used in one or more embodiments of the present application are also intended to include plural forms, unless the context clearly indicates otherwise.

[0031] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the present application belongs. The terms used in the specification of the template herein are only for the purpose of describing the specific embodiments, and are not intended to limit the present application. The term "and / or" used herein includes any and all combinations of one or more related listed items.

[0032] It should be understood that although the terms first, second, etc. can be used in one or more embodiments of the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of one or more embodiments of the present application, first can also be called second, and similarly, second can also be called first. Depending on the context, the word "if" as used herein can be interpreted as "when" or "as soon as".

[0033] At present, in the field of application program development for apple mobile devices, generally with the help of existing cross-platform tools such as Flutter and Xamarin, these tools can simplify the process of transmitting the source code of apple mobile device application to MAC server for compilation, but the above-mentioned method still needs MAC operating system to compile the source code of apple mobile device application, and does not solve the problem of dependence on MAC operating system in the source code compilation process of apple mobile device application.

[0034] The technical solutions of the present application and how the technical solutions of the present application solve the above technical problems will be described in detail below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes will not be described again in some embodiments. The embodiments of the present application will be described below with reference to the drawings.

[0035] Please refer to Figure 1 The apple mobile device application generation method provided in the embodiment of the present application at least includes the following steps:

[0036] S10, obtaining the source code of the apple mobile device application.

[0037] Specifically, in this embodiment, the source code of the apple mobile device application written by the developer needs to be obtained first.

[0038] In a specific embodiment, the source code of the apple mobile device application includes:

[0039] S11, obtaining the SDK of the apple mobile device application.

[0040] Specifically, the SDK of the apple mobile device application is a software development kit provided by apple company for developers to develop apple mobile device application, for example: iphonesdk, iwatchsdk, etc.

[0041] In this embodiment, it can be downloaded from apple official website or copied from other electronic devices.

[0042] S12, developing the source code of the apple mobile device application according to the SDK of the apple mobile device application.

[0043] Specifically, after obtaining the software development kit of the apple mobile device application, the developer can write the source code of the apple mobile device application according to the actual design requirements.

[0044] In one embodiment, after obtaining the SDK of the Apple mobile device application, the method further includes: S111, preprocessing the SDK, the preprocessing including: format conversion processing, line break processing, or cross-platform compatibility processing.

[0045] Understandably, to avoid the SDK becoming unusable in certain situations, it is necessary to perform preprocessing operations on the SDK after obtaining it. These operations may include format conversion, line wrapping, or cross-platform compatibility handling.

[0046] It should be noted that if the SDK can be used directly, no preprocessing is required.

[0047] S20. The source code is compiled, and the compiler parameters are modified during the compilation process to obtain the compiled intermediate file.

[0048] Understandably, after the source code is written, it generally needs to be compiled and linked to generate an executable file for the target device. Compilation and linking require a compiler and a linker, respectively, to perform the necessary compilation and linking processes.

[0049] In this embodiment, the first step is to select the corresponding compiler based on the source code. Generally, the compiler is selected based on the programming language of the source code. For example, for programming languages ​​such as Objective-C, C, and C++, the compiler can be either the clang compiler or the gcc compiler.

[0050] It should be noted that in the compilation process of this embodiment, the relevant default parameters of the compiler need to be modified first, and then the source code is compiled by the compiler to obtain the compiled intermediate file.

[0051] In one embodiment, step S20, compiling the source code and modifying the compiler parameters during the compilation process to obtain a compiled intermediate file, includes:

[0052] S21. Modify the SDK path parameter in the compiler to point the SDK path parameter to the path of the Apple mobile device application SDK.

[0053] S22. Modify the target device platform parameter in the compiler, and set the value of the target device platform parameter to the value of the running device platform of the Apple mobile device application;

[0054] S23. The source code is compiled using a compiler with modified parameters to obtain an intermediate file after compilation.

[0055] In a specific embodiment, the compiler includes one or more of:

[0056] If the compiler includes a clang compiler or a gcc compiler, modify the -isysroot parameter and the -target parameter, specifically, point the -isysroot parameter to the path of the Apple mobile device application SDK, and set the -target parameter to the value of the running device platform of the Apple mobile device application program, for example, the IOS setting value is arm64-apple-iosxxx, where xxx represents the ios target version number, and xxx is the setting value of the -target parameter.

[0057] If the compiler includes a swiftc compiler, modify the -sdk parameter and the -target parameter, specifically, point the -sdk parameter to the path of the Apple mobile device application SDK, and set the -target parameter to the value of the running device platform of the Apple mobile device application program.

[0058] It should be noted that if the source code includes other programming languages, the corresponding compiler of the other programming languages also needs to be obtained and modified accordingly.

[0059] It should be noted that in this example, the compilation process can be processed on any non-MAC operating system.

[0060] S30, link the intermediate file, and modify the parameters of the linker during the linking process to obtain an executable file of the Apple mobile device application program.

[0061] It can be understood that linking is the process of combining multiple target files (and possibly library files) generated by compilation into an executable file or a library file. It plays a key role in the program development process, integrating compiled code units into complete programs that can run in the operating system.

[0062] In this embodiment, first, the corresponding linker needs to be selected according to the source code. Generally, the corresponding linker is selected according to the programming language of the source code, for example, the linker for objective-c, c, c++, etc. programming languages can select LLVM Linker linker, i.e. lld linker or ld64 and their variants.

[0063] It should be noted that in the linking process in this embodiment, the related default parameters of the linker need to be modified first, and then the intermediate file is linked through the linker to obtain an executable file of the Apple mobile device application program.

[0064] In one embodiment, the step S30, the linking processing of the intermediate file is performed, and the parameters of the linker are modified during the linking processing to obtain the executable file of the apple mobile device application, comprising:

[0065] S31, modifying the SDK path parameter in the linker, and pointing the SDK path parameter in the linker to the path of the apple mobile device application SDK;

[0066] S32, modifying the target device architecture parameter in the linker, and setting the target device architecture parameter in the linker to the architecture value of the running platform of the apple mobile device application;

[0067] S33, performing the linking processing of the intermediate file by the linker after the modification of the parameters to obtain the executable file of the apple mobile device application.

[0068] In one specific embodiment, the types of the linker include one or more types; if the linker includes the lld linker or the ld64 linker, the -syslibroot parameter and the -arch parameter are modified, and the specific modification is as follows: the -syslibroot parameter is set to point to the sdk path of the apple mobile device application; and the -arch parameter is set to the value of the architecture of the running device platform of the apple mobile device application.

[0069] It should be noted that if the system library is needed during the linking process, the framework path in the system library needs to be set to the library directory under the sdk path of the apple mobile device application. For example, the ld64.lld linker, the -F parameter in the ld64.lld linker is set to the Frameworks directory under the sdk of the apple mobile device application, and the -o parameter in the ld64.lld linker is set to specify the storage location of the compiled binary file.

[0070] It should be further noted that if other linkers are needed during the linking process, the same processing needs to be performed on the remaining linkers.

[0071] In this embodiment, the linking processing of the compiled intermediate file is performed by the linker after the modification of the parameters to obtain the executable file of the apple mobile device application.

[0072] It should be noted that in this example, the compiling processing can be performed on any non-MAC operating system.

[0073] The application provides a method for generating an apple mobile device application program. The method comprises the following steps: obtaining source code of the apple mobile device application program; compiling the source code and modifying parameters of a compiler during the compiling process to obtain an intermediate file after compiling; linking the intermediate file and modifying parameters of a linker during the linking process to obtain an executable file of the apple mobile device application program. Compared with the prior art, the application modifies the related parameters in the compiler and the linker during the development process of the apple mobile device application program, so that the source code of the apple mobile device application program can directly generate the executable file of the apple mobile device on a non-MAC system. The application solves the problem that the apple mobile device application program needs to rely on the Mac operating system for compiling, thereby improving the work efficiency of the program developers, reducing the development cost, simplifying the development system, and optimizing the development process.

[0074] Please refer to Figure 2 The application also provides a device 200 for generating an apple mobile device application program, which comprises the following modules.

[0075] The obtaining module 201 is configured to obtain source code of the apple mobile device application program.

[0076] The compiling module 202 is configured to compile the source code and modify parameters of a compiler during the compiling process to obtain an intermediate file after compiling.

[0077] The linking module 203 is configured to link the intermediate file and modify parameters of a linker during the linking process to obtain an executable file of the apple mobile device application program.

[0078] In an embodiment, the compiling module 202 is specifically configured to modify an SDK path parameter in the compiler, points the SDK path parameter to the path of the apple mobile device application SDK, modify a target device platform parameter in the compiler, set the value of the target device platform parameter to the value of the running device platform of the apple mobile device application program, and compile the source code by using the compiler after modification of the parameters to obtain the intermediate file after the compiling process.

[0079] In an embodiment, the link processing module 203 is specifically configured to modify an SDK path parameter in the linker, and point the SDK path parameter in the linker to a path of the mobile device application SDK of Apple; modify a target device architecture parameter in the linker, and set the target device architecture parameter in the linker to an architecture value of the mobile device application program running platform of Apple; and perform link processing on the intermediate file through the modified linker to obtain the executable file of the mobile device application program of Apple.

[0080] In an embodiment, the obtaining module 201 is specifically configured to obtain an SDK of a mobile device application of Apple; and develop source code of a mobile device application program of Apple based on the SDK of the mobile device application of Apple.

[0081] In an embodiment of the present application, the obtaining module 201 is further configured to perform preprocessing on the SDK, and the preprocessing includes format conversion processing, format line processing, or cross-platform compatibility processing.

[0082] Please refer to Figure 3 The embodiment of the present application further provides a computer electronic device 400, which comprises a memory 403 and a processor 402, the memory 403 stores a computer program, and the processor 402 implements the steps of the generation method of the mobile device application program of Apple according to any one of the above embodiments when executing the computer program.

[0083] Specifically, the electronic device 400 comprises a transceiver 401, a bus interface, and a processor 402, the processor 402 is configured to obtain source code of a mobile device application program of Apple; perform compilation processing on the source code, and modify parameters of a compiler during the compilation processing to obtain a compiled intermediate file; perform link processing on the intermediate file, and modify parameters of a linker during the link processing to obtain an executable file of the mobile device application program of Apple.

[0084] In an embodiment of the present application, the electronic device 400 further comprises a memory 403. Figure 3In particular embodiments, the bus architecture can include any number of interconnecting buses and bridges, custom layouts in PC boards or the like, tailored to the particular requirements of processor or processors 402 and memory 403, which can all be linked together by various circuitry, including an interface bus. The bus architecture can also include various other circuits, which are well known within the art, such as peripheral device, voltage stabilizers and power management circuits, and the like, and therefore, are not further described herein. The bus interface provides an interface to the transceiver 401, which can be a plurality of elements, i.e., including a transmitter and a receiver, providing a means for communicating with various other apparatus over a transmission medium. The processor 402 is responsible for managing the bus architecture and general processing, and the memory 403 can store data used by the processor 402 in executing operations.

[0085] The embodiment of the present application further provides a computer readable storage medium, which stores a computer program. The computer program is executed by a processor to implement the steps of the method for generating an apple mobile device application program according to any one of the preceding embodiments.

[0086] In the embodiment, the computer readable storage medium can be a non-volatile storage medium or a volatile storage medium. For example, the computer readable storage medium can include, but is not limited to, a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like.

[0087] In all the examples shown and described herein, any specific value should be interpreted as merely exemplary and not as a limitation, and thus, other examples of the exemplary embodiments can have different values.

[0088] It should be noted that similar reference numerals and letters refer to similar items throughout the accompanying drawings, and thus, once an item is defined in one drawing, it is not necessary to further define and explain it in subsequent drawings.

[0089] It should be understood that all the functional modules or units in the embodiments of the present application can be integrated or can exist alone, and two or more functional modules or units can be integrated to form a single functional module or unit.

[0090] In addition, each functional module or unit in the embodiments of the present application can be integrated together to form a separate part, or each functional module can exist alone, or two or more functional modules can be integrated to form a separate part.

[0091] The functions described above can be implemented in the form of software function modules and sold or used as independent products, and can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application can be embodied in the form of a software product, and the computer software product is stored in a storage medium, and includes several instructions for enabling a terminal device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the embodiments of the present application.

[0092] The above describes only the specific implementation of the present application, but the protection scope of the present application is not limited to this. Any person skilled in the art can easily think of changes or replacements within the technical range disclosed in the present application, which should be covered within the protection scope of the present application.

Claims

1. A method for generating an application program for an apple mobile device, characterized by, The application comprises the following steps: Obtaining the source code of an apple mobile device application program; Compiling the source code and modifying the parameters of the compiler during the compiling process to obtain the intermediate file after the compiling, comprising the following steps: Modifying the SDK path parameter in the compiler to point to the path of the apple mobile device application SDK; modifying the target device platform parameter in the compiler to set the value of the target device platform parameter as the value of the running device platform of the apple mobile device application program; compiling the source code by the compiler after the parameter modification to obtain the intermediate file after the compiling process; Linking the intermediate file and modifying the parameters of the linker during the linking process to obtain the executable file of the apple mobile device application program, comprising the following steps: Modifying the SDK path parameter in the linker to point to the path of the apple mobile device application SDK; modifying the target device architecture parameter in the linker to set the value of the target device architecture parameter as the architecture value of the running platform of the apple mobile device application program; linking the intermediate file by the linker after the parameter modification to obtain the executable file of the apple mobile device application program.

2. The method of claim 1, wherein the application is generated for an Apple mobile device. The types of the compiler include one or more types; If the compiler includes the clang compiler or the gcc compiler, the -isysroot parameter and the -target parameter are modified, specifically, the -isysroot parameter is pointed to the path of the apple mobile device application SDK; the -target parameter is set as the value of the running device platform of the apple mobile device application program. If the compiler includes the swiftc compiler, the -sdk parameter and the -target parameter are modified, specifically, the -sdk parameter is pointed to the path of the apple mobile device application SDK; the -target parameter is set as the value of the running device platform of the apple mobile device application program.

3. The method of claim 1, wherein the method further comprises: The types of the linker include one or more types; If the linker includes the lld linker or the ld64 linker, the -syslibroot parameter and the -arch parameter are modified, specifically, the -syslibroot parameter is set as the path of the apple mobile device application program; the -arch parameter is set as the value of the architecture of the running device platform of the apple mobile device application program.

4. The method of claim 1, wherein the application program is generated for the Apple mobile device. The step of obtaining the source code of the apple mobile device application program comprises the following steps: Obtaining the SDK of the apple mobile device application; Developing and generating the source code of the apple mobile device application program according to the SDK of the apple mobile device application.

5. The method of claim 4, wherein the application is generated for an Apple mobile device. After the step of obtaining the SDK of the apple mobile device application, the following step is further included: Preprocessing the SDK, the preprocessing comprising the following steps: format conversion processing, format line processing or cross-platform compatibility processing.

6. An apparatus for generating an application for an apple mobile device, the apparatus comprising: The application comprises the following steps: An obtaining module is configured to obtain the source code of an apple mobile device application program; The compiling processing module is used for compiling processing the source code and modifying parameters of a compiler during the compiling processing to obtain an intermediate file after compiling, and comprises: modifying an SDK path parameter in the compiler, and pointing the SDK path parameter to a path of an Apple mobile device application SDK; modifying a target device platform parameter in the compiler, and setting a value of the target device platform parameter as a value of a running device platform of the Apple mobile device application program; and compiling processing the source code by the compiler after modifying the parameters to obtain an intermediate file after the compiling processing. The linking processing module is used for linking processing the intermediate file and modifying parameters of a linker during the linking processing to obtain an executable file of the Apple mobile device application program, and comprises: modifying an SDK path parameter in the linker, and pointing the SDK path parameter to a path of an Apple mobile device application SDK; modifying a target device architecture parameter in the linker, and setting the target device architecture parameter as an architecture value of a running platform of the Apple mobile device application program; and linking processing the intermediate file by the linker after modifying the parameters to obtain the executable file of the Apple mobile device application program.

7. A computer electronic device, comprising: The computer readable storage medium stores a computer program, and the computer program is executed by the processor to realize the steps of the generation method of the Apple mobile device application program in any one of claims 1-5.

8. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program is executed by the processor to realize the steps of the generation method of the Apple mobile device application program in any one of claims 1-5.

Citation Information

Patent Citations

  • Software construction method and system based on Flutter

    CN112631600A

  • Transplanting method and device for Wayland embedded graphic application

    CN119045882A