I need to upload an app that has a * in its name, but when I try to upload it to ItunesConnect I get this error
This bundle is invalid. The executable name, as reported by
CFBundleExecutable in the Info.plist file, may not contain any of
these characters: []{}parenthesis.+*"
I need to keep the * but how can I edit my info.plist to be accepted?
The app name is set by CFBundleDisplayName and the executable name is set by CFBundleExecutable in your Info.plist-file. They do not have to be equal.
The CFBundleDisplayName and CFBundleExecutable has the default value of ${PRODUCT_NAME}, but you can enter any string you want.
So:
Change your product name to change the ${EXECUTABLE_NAME}, removing *. See Xcode 4: How to change ${EXECUTABLE_NAME} variable's value?
Edit CFBundleDisplayName in the Info.plist file to the desired value. Here you can add *.
Related
I have numerous .bundle files and i want to delete/remove them (Using terminal)after finding a specific text inside info.plist they contain.(each .bundle contain info.plist)
for example i want to search for "Test" in NSHumanReadableCopyright
<key>NSHumanReadableCopyright</key>
<string>Test</string>
and if "Test" is the string i want to delete the folder that contains it. ( the Info.plist is located in Bundle_name.bundle/Contents/Info.plist >> so i want to delete Bundle_name.bundle.)
Thanks!
So I need to create a script that will delete our Safari extension product.
The problem is that sometimes the File name is changing
and I cant just delete all .EXTZ
Files from the Extension Folder.
So I thought maybe to look inside the Extension.Plist and see in the "installed extension key my extension sub key with the installed file name (see screenshot)
Then Delete the file With the exact name in the extension folder.
I Couldn't figure out how to do it
Can Someone help ?
If you guys a better idea how to remove the extension it'll be nice!
The Screenshot of the Plist file :
Applescript has built in support for reading plist files in "System Events". You can use it to pull out the Archive File Name.
tell application "System Events"
tell property list file "File Path to plist file here"
set plistValue to value of property list item "Installed Extensions"
set plistFirstItem to item 1 of plistValue
set archiveFileName to |archive file name| of plistFirstItem
return archiveFileName
end tell
end tell
This should return the string in that property. You can then delete the file with that name in the extensions folder.
I have an info.plist file with variables inside, such as ${PRODUCT_NAME} or ${EXECUTABLE_NAME}.
Where does there variables reference to?
And how do I know these variables will be converted into what string by Xcode?
Here is the answer,
$(PRODUCT_BUNDLE_IDENTIFIER) and $(PRODUCT_NAME) comes from,
And ${EXECUTABLE_NAME} is concatenation of:
$EXECUTABLE_PREFIX, $PRODUCT_NAME and $EXECUTABLE_SUFFIX.
All are in Build Settings.
I have to run an exe file in the native mode so i guess adding it to the registry is the only option i am having.Please give some input how this can be done?
I believe you're thinking of the BootExecute value, located in this key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager
This is a REG_MULTI_SZ value, i.e., it contains multiple strings. Each string contains an arbitrary identifier, the name of the executable to run, and the arguments to pass to the executable. For example, the default setting contains only one string:
autocheck autochk *
Here autocheck is an arbitrary label, autochk indicates that the executable to run is c:\windows\system32\autochk.exe, and * is the argument string passed to autochk.exe.
i register my file extension in windows with "ftype" and "assoc", this works. now i have the bad looking default icon, how can i change this icon??
HKEY_CLASSES_ROOT\.[extension] default key contains a REG_SZ string, that is the name of the next key:
HKEY_CLASSES_ROOT\[that_string]\DefaultIcon default key ("#") contains this:
[path_to_icon_file],[zero_based_index]
Example:
HKEY_CLASSES_ROOT\.txt
#="MyTextFile"
HKEY_CLASSES_ROOT\MyTextFile\DefaultIcon
#="C:\WINDOWS\explorer.exe,2"
This way, all .txt files will use the third icon from the Explorer executable.