Skip to main content

pbx_tool

Project description

pbx

pip install -r kl_pbx

use

import lib


from kl_pbx import PBXProjectHelper,PBXTreeType,PBXGetSetfrom

init project

main_target="UnityFramework"
 projectpath = os.path.join(self.work_project_path, "Unity-iPhone.xcodeproj/project.pbxproj")
  pbx_helpr = PBXProjectHelper(projectpath)

add group

mygroup = pbx_helpr.add_group("ios", "")

add a system lib to group

pbx_helpr.add_file(main_target, "user/lib/libz.1.2.5.tbd", mygroup, PBXTreeType.SDKROOT)

add a system framwork to group

frameworkgroup = pbx_helpr.add_group("Frameworks", "", mygroup)
 pbx_helpr.add_file(main_target, "System/Library/Frameworks/AudioToolbox.framework", frameworkgroup, PBXTreeType.SDKROOT, PBXGetSet(attribs))

add files to group filepath is full path of disk

 pbx_helpr.add_file(main_target, filepath, mygroup, PBXTreeType.SOURCE_ROOT)

add folders to group folder is full path of disk

pbx_helpr.add_folder(main_target, folderpath, mygroup, excludes=self.ios_build_config.excludes)

add flags

pbx_helpr.add_flags(main_target, "OTHER_LDFLAGS", ["-ObjC", "-lz", "-lstdc++"])

change flags

pbx_helpr.set_flags(main_target, 'IPHONEOS_DEPLOYMENT_TARGET', "11.0")

change code sign

pbx_helpr.change_code_sign("Unity-iPhone","Apple Development: Chongyu Lu (F3Q2Q5F68Y)","hoc_jpsgp_dev")

change package name

pbx_helpr.change_package_name("Unity-iPhone", "com.package,kl")

save all change

pbx_helpr.save()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kl_pbx-0.0.4.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kl_pbx-0.0.4-py2.py3-none-any.whl (8.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file kl_pbx-0.0.4.tar.gz.

File metadata

  • Download URL: kl_pbx-0.0.4.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for kl_pbx-0.0.4.tar.gz
Algorithm Hash digest
SHA256 6b670cba31d56fa625ac29ca510765bb7981703aa51bea8d464aa524c11aedb4
MD5 9148357176651e432ab7ed4dec217d97
BLAKE2b-256 56bb59847097bac1ddb348666cbd587676c2753ea7c04fab32d4346d23473bed

See more details on using hashes here.

File details

Details for the file kl_pbx-0.0.4-py2.py3-none-any.whl.

File metadata

  • Download URL: kl_pbx-0.0.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for kl_pbx-0.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ccdf61b39ba039e63b7a815d2385afbde9068cb964b5fa72647faa3a5ca13fb0
MD5 89a170cbbd58d004d17ad6f397fdfd22
BLAKE2b-256 5832d7adcf2a77995492796a4e728099a3f9392875b90cff373d986ad31fe0ab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page