Xcode static library appears twice - xcode4

I added the OCMock static library in Xcode with some header files.
I'm not sure what's changed since I added it but the file now appears twice in the Project Navigator - once at the top level and once under the usr/lib folders.
How do I get rid of the second (highlighted) listing?

It looks like you added OCMock's whole "usr" folder via a folder reference, most likely by accident.
You have three choices for a solution:
1)
Remove the "usr" folder from your list of files & folders in your project, and re-add just the "include" folder via folder reference (I'm presuming you want to use the folder reference so you can pick up the latest header files that are in there?).
2)
Add the required header files to your project directly (i.e. not using the folder reference).
3)
Or get rid of the first "libOCMock.a" library and just rely on the folder reference to pick up the static library living under the "usr" hierarchy.

Related

QT Creator Disable displaying file path in file browser

I move source and header files in include and src dirrectories. Then i define this dirrectories in VPATH and include files without specifying any directory.
After all of this, I want to see files in the File Browser panel as included directly (without any path), but I see relative paths anyway!
Is there some way to disable relative paths in File Browser panel?
P. S. I doesn't like "Simplify Tree" option, coz it place all headers and sources in one folder. This is uncomfortabel.
The screenshots are all taken from "Projects" view, not from file view. The project view is meant to visualize the build system. Your build system has the files stored in a subfolder, so Creator will display that. Since the Projects view is used to add files into the project this is important: Which folder should a new file go into if that folder was not displayed?
It does not matter how you write the filenames into your .pro-file: Creator will get a list of absolute paths for all your sources -- as long as qmake/make can build your project that is:-)

Copy a project from one directory to another directory - YII2 basic

I have created one project in yii2-basic. In that I had done the some changes in the bootstrap.css in the web/assets/dir/.
Now I need to deploy this into another directory. I copied that project into another directory. Then I run in the browser. The changes I had done in the files are not affecting to the site. Then it refers to the another file for css.
I can't find the correct way to do this. Can anyone show me the correct way to do this?
for changing the css you should change the original in the
.\basic\vendor\bower\bootstrap\dist\css
then minimize it
and then in the dir web\asset you must delete the dir where is place the bootstrap (bootstrap-min.css i guess) files
There isn't a fixed name for this asset dir, you must find yourself the correspondent dir containing all the bootstrap part (css, js , fonts). and then remove (cancel) this dir.
Removing this dir when you accessing to the app the dir is newly recreate (normally with another asset id name).
If you don't do this when you copy a project in a new dir, at the first access the asset directory are newly create and the code you have change is not reached by application.

Reading in existing file in Flex 4.6

Alright, I'm really new to flex. I have a data file on my computer that I need my flex mobile app to read from. Is it possible to put this file in a certain location on my computer so that the app will see it when I'm testing(ex-can i put it in a folder that is linked to the applicationstoragedirectory directory)? Thanks
You can just drop it in the source folder, it will automatically be copied into the bin-debug folder (there are a few choice exceptions that you can find in the window->preferences->Flash Builder->File Exclusions) Everything that is copied into the bin-debug would also be packaged into an air or airi file and ultimately deployed next to the bytecode/executable just like it is in the bin-debug in the builder.
You can also make another folder, say "resources" then in the project properties in the flex build path go to source path tab and click add folder button and type "resources". Then it will treat that and the src folder the same.

Xcode 4 project template adds extra folder

When I make a new project with xc4 I don't want it to create a folder with the same name as the project. I want the source files associated with a project template to get copied into several other folders that sit next to the project.
In the TemplateInfo.plist, I can specify which files to copy through the Definitions and Nodes arrays. In the Definitions, if I make the name ../Example.cpp then it will copy the file into the directory with the project rather than into the folder that has the project's name, which is what I want. But, if i delete that empty folder then xcode can no longer find any files because all files had to be specified relative to the auto-created folder.
Does anyone know how to get around this? Is there some way to specify which folder project files should be relative to? Or perhaps some other way to specify relative paths for files in a project template?

flex air include a directory with the installer

I am creating an AIR application using Flex. In it I need 2 directories downloads & uploads. These directories will have downloaded files & uploaded files.
But the problem is I am not able to create these 2 directories programmatically & also I am not able to include the 2 directories with the installer in the application directory.
Is there any way to create or include directories in the application directory.
Thanks
Create an empty folder inside your Flex project. Right click on your project and go to Properties->Compiler (not exact name but something like that). Make sure it has "Copy nonembedded assets to output directory" (check it if it doesn't). Click Ok.
Export a release build of your AIR app. Do NOT click Finish after the "signing" step. Follow each step until you get to the "assets" screen. It will show you a list of every file and folder in your output (bin-debug, by default) directory.
Check the files you want, uncheck the one's you don't, and click OK. Done. You have your AIR file packaged with whatever file and folder you want.
[...] But I need to create the directories in application directory. I am using: var dir = File.applicationDirectory.resolvePath("upload directory");dir.createDirectory(); And I am getting: at runtime::SecurityManager$/checkPrivilegeForCaller()
This is a know issue. AIR wouldn't allow you to write to the application directory. Instead try writing
either to the File.applicationStorageDirectory (application's scratchpad),
or to the File.documentsDirectory (stuff user might want to lookup)
Related resources:
Adobe AIR team blogpost
Use This Dear :)
var dir:File = File.applicationDirectory.resolvePath("NewFolder");
dir =new File(dir.nativePath.toString());
dir.createDirectory();
Regards
Ali Naqvi
have you tried something like the following
var dir = File.userDirectory.resolvePath("upload directory");
dir.createDirectory();
This will create the directory 'upload directory' if it does not already exist (inside the users home directory).
To add to johncblandii's anwser:
I've found that for the above to work, you also need to include the folder in the project's build path. I also had to refresh the project's file listing before flash builder recognized the folder and added it to the include options.
I just want to add another thing to johncblandii's comment: Create an empty.txt file and write something there. Because it looks like empty folders are nod allowed to be included in your packed application

Resources