When I add an extra ant target to one of the default Ant build files in Liferay Developer Studio I can choose this target from the context menu of the project build.xml file in the Ant window. But I would like to be able to choose this extra target from the context menu when I right click the project and then Liferay -> SDK. I have tried to add the extra target to several files but it's never shown in the list with Ant targets.
How can I add extra targets to this menu?
Related
I create a project in Delhi XE3. Then add a language project to it. I hope I can create a build group that will build both the main project and the language project in the same configuration.
So I create a new build group, then add the main project, i.e., Project1, then I will see the language project is added automatically. That seems great:
But the problem is when I build the build group, only the main project is built, the language project is not. I still need to manually build the language project. Thus the build group is completely meaningless.
I try to click the empty fields for CHS language project, but get the following empty boxes:
As part of our Unity build process we drag and drop a directory of C source files which are generated by the Unity IDE into our iOS Xcode project. We want Xcode to "Create groups" for the files because the header files don't seem to be recognized by the compiler when using "Create folder references".
I'm wondering if there's a way to script this so we don't have to manually drag the directories into Xcode each time. Adding a "Copy Files" build phase only seems to work if I choose "Create folder references". When I choose "Create groups", the "Copy Files" section remains empty. Is this a bug in Xcode or am I doing something wrong? I'm using Xcode 9.1.
I know Apple recommends creating a framework rather than copying in a directory of source files. The reason we can't do that is because we're relying on the Unity build process which gives us a bunch of C source files.
In Xcode, you can manage your build process under the "Build Phases" tab when you select your app target. These tasks are executed on each build of your app, unless specified otherwise by some phases (for example: you can choose to run a phase only when the app installs for the first time).
Click the + button and you can add a "Copy files phase" that will copy your selected files into the app. When adding the files you'll be able to select if added folders will create groups or folder references.
You can also add a custom "Run script phase" and write some bash code to do whatever you like, or even run an external script that will do more complex work.
Xcode makes it possible to script adding resource files such as images to the project file using the "Build Phases" tab however this does not work for source code files that need to be recognized at compile time. Luckily I managed to come across a nice community-developed Python script which does allow us to do this.
https://github.com/kronenthaler/mod-pbxproj
With this script we can make all sorts of modifications to the project file including adding or deleting files.
See this link for a full list of available operations:
https://github.com/kronenthaler/mod-pbxproj/wiki
xcode->Build Phases-> click (+) button -> New Copy Files Phase / New Run Script Phase
I have a single Xcode project with multiple targets.
Each target has its own Info.plist file with the version number of that application. (CFBundleVersion and CFBundleShortVersionString)
How can I use single, common Version Number and Build Number source for each target, rather than editing each target's plist file?
The following works with Xcode 12 and does not require User-Defined variables.
Select your project
Select Build Settings and find "Versioning"
Set "Marketing Version" to be your version
Set "Current Project Version" to be your build
Next, select each of your targets
Delete/remove any version number and it will use the default "Marketing Version"
Delete/remove any build number and it will use the default "Current Project Version"
Do this for all of your targets
Once you do this, you only need to update the "Marketing Version" and "Current Project Version" for the Project and all of your targets will be updated accordingly.
Add a new custom property to your project (Editor -> Add Build Setting -> Add User Defined Setting). Let's name it MY_VERSION and let's give it value 1.0.1.
Now go to the Info section of every target and set the version to ${MY_VERSION}.
I have XCode Workspace in which i have many Projects. I don't want to build entire workspace every time. How can I build a single Project in Xcode Workspace?
In Visual Studio i can right click on project and select project only->Build but i didn't find any option in XCode..
You probably should do it with schemes.
Open scheme and remove unwanted targets. From Build section.
You can create a scheme for that. For reference: XCode Scheme
I tried creating a workspace and added two projects in it. It appeared on the Menu (From which you select between device and simulators) for which project I want to fire build action.
I generated a jar that contain the class which I use in my application, but I add this jar into the project following these steps:
right click in the project.
properties
Build
Libraries
Add external jars or add jars
ok
I can use these libraries as I write my code, but when I'm loading my project in the emulator or device it said that my library "NOT FOUND".
Please help, what is the correct way to use an external jar in blackberry projects?
please try following step:
right click in the project.
properties
Build
Libraries
Add external jars
select order and export tab
check mark true which .jar file you add
click ok
From the BlackBerry developer docs:
In the Package Explorer view, right-click the project that you want to add a dependency to.
Click Build Path > Configure Build Path .
Click the Libraries tab.
Complete one of the following tasks:
Click Add JARS if the .jar file is in the current workspace.
Click Add External JARS if the .jar file is not in the current workspace.
Select the .jar file that you want this project to depend on. The .jar file must be generated by a Java® application project. You cannot add a BlackBerry® application project of the Library type in this manner.
Click OK.
Pay close attention to the two different options in step 4. above, choosing the one that applies to your situation (where your .jar file is located).