tulsi icon indicating copy to clipboard operation
tulsi copied to clipboard

Entitlements not included when generating with Tulsi

Open akshaygarg-TUL-Luxury opened this issue 4 years ago • 6 comments

while generating ios_application with Tulsi, entitlements are not included in the generated project.

ios_application(
    name = "MyApp",
    bundle_id = "MyApp.Example",
    entitlements = "//MyApp:Entitlement",
    infoplists = [
        "//MyApp/Info.plist"
    ],
    minimum_os_version = "11.0",
    families = ["iphone"],
    deps = ["Sources"],
    linkopts = [
        '-lxml2',
        '-lz',
        '-ObjC'
    ]
)

filegroup(
    name = 'Entitlement',
    srcs = [
        'MyApp.entitlements'
    ]
)

akshaygarg-TUL-Luxury avatar Oct 07 '21 07:10 akshaygarg-TUL-Luxury

Same problem here, did you found some workaround?

lucasmpaim avatar Oct 11 '21 20:10 lucasmpaim

Same problem here, did you found some workaround?

not yet Please let me know if u find anything

akshaygarg-TUL-Luxury avatar Oct 21 '21 06:10 akshaygarg-TUL-Luxury

You mean the pre-processed ones? You can add them via the additionalFilePaths in your tulsigen.

thii avatar Oct 21 '21 08:10 thii

additionalFilePaths

@thii I have this entitlement file

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>com.apple.developer.nfc.readersession.formats</key>
	<array>
		<string>NDEF</string>
		<string>TAG</string>
	</array>
	<key>keychain-access-groups</key>
	<array>
		<string>$(AppIdentifierPrefix)com.MyApp.com</string>
	</array>
</dict>
</plist>

and how to provide its path in tulsigen?

akshaygarg-TUL-Luxury avatar Oct 21 '21 12:10 akshaygarg-TUL-Luxury

Add the path to that file to your tulsigen file, for example: https://github.com/bazelbuild/tulsi/blob/c7609aa3914123f1b5f1a6b5caff551617a325c9/Tulsi.tulsiproj/Configs/Tulsi.tulsigen#L32-L34

thii avatar Oct 22 '21 02:10 thii

Add the path to that file to your tulsigen file, for example:

https://github.com/bazelbuild/tulsi/blob/c7609aa3914123f1b5f1a6b5caff551617a325c9/Tulsi.tulsiproj/Configs/Tulsi.tulsigen#L32-L34

@thii even after adding the file path to additionalFilePaths, entitlements are not included in the generated project

akshaygarg-TUL-Luxury avatar Oct 22 '21 04:10 akshaygarg-TUL-Luxury

Thanks for submitting this issue but this tool is being deprecated. Please checkout rules_xcodeproj for a more complete and maintained Xcode integration.

keith avatar Feb 15 '23 17:02 keith