The resource directory is the default directory. The files seen above are stored on a real device and Gideros Player like the following: Consider the test project below, and examine the 3 directories and corresponding files. ![]() Your code, images, audios and all other files reside in the resource directory. Thus, in the script, debug’s provisioning is bound to 4173f94a-df88-4756-9f0e-1e40f83cdd21.In Gideros runtime, there are now, 4 kinds of directories: The following scripts are implemented #replace Then, before building, according to different CONFIGURATION, we can modify the corresponding provisioning file in pbxproj file to achieve the purpose of modifying the provisioning configuration and automatically realize the above process.įor the example above, if I want to change the provision of debug before building, I just need to change the key pair to what I want. Similarly, the provisioning option is also saved in it. Now, according to our knowledge above, we know that we use Xcode to configure the project, and all the configuration results will eventually be saved in the pbxproj file. In some cases, it’s obviously too much trouble to choose different certificates manually during the construction process. Each IPA contains different provisioning files. For example, in the development process, we may need to build different ipas, such as release, dailybuild, and so on. If you want to know which option each key pair is specific to, you can change one item in the build settings and diff the pbxproj file.Īfter you have a general understanding of the structure of the pbxproj file, you can start to make some more flexible changes. Under build settings, we save all the information we set for debug of the target in Xcode build settings. For example, if you want to know the configuration information of target NSUrlSession debug, you can find the corresponding configuration according to its ID (62A4BA691B8228C000568CEF): This section records the project and the specific configuration information of each target. These UUIDs are the unique identifiers under the corresponding CONFIGURATION configuration for each target. This project has a project PBXProject “NSUrlSession” and two targets, respectively.Įach part of PBX Native Target “NSUrlSession” and PBX Native Target “NSUrlSession Tests” contains debug release and has corresponding ID. The figure above is an XCConfiguration List in a demo project. Correspondingly, in the pbxproj file, these parts need to be distinguished. This part, mainly target, and some basic information of project, usually a project will correspond to one or more targets, and each target and the configuration of the project itself will be different. ![]() xcodeproj, right-click, and display the contents of the package. How to view the pbxproj file of the project: Find the project file, that is, yourproject. Project configuration information, such as XCBuild Configuration and XCConfiguration List, mainly introduces project configuration information. Organizational structure classification information, such as PBXGroup The pbxproj file contains the following main informationĮngineering file association information, such as PBXBuildFile, PBXFileReference At this time, we need to understand the composition of some project. ![]() However, in some cases, we may need to dynamically modify the contents of the pbxproj file for convenience or conflict avoidance (especially in the case of multi-person collaboration). We modify the pbxproj file by editing the options in xcode, such as build set and general, as shown in the following figure: Normally, we do not need to deal directly with project. Xcode unifies the configuration information of our project into the project. Here, I learned some things in my study, a little record, on the one hand, it is convenient for new students to have an understanding, but also let myself have a reference in the future. There are many information about this document on the internet, but the feeling is not very detailed. (This article was originally published in csdn, but now the blog is migrated and rearranged and modified with Markdown)īecause of the needs of the project, I recently learned project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |