Hi am having this error when I am trying to compile my application.i try with replacing the name of buttons still its showing the same?
Try to follow the Steps. hope it helps and if not, please revert.
1) Open your Project
2) select your project Target
3) go to the Build Phases Section
4) go to the Compile Sources Tab
5) then search there the files names that xcode are saying duplicated and then remove them.
6) Clean the project and then try Running it.
Go to x code prefrences
Then go to location and click on small arrow next to "/Deriveddata" and delete derived data
This should solve it
Related
I Integrated SDWebImage in my project , its work like a charm in my mac system but while i am sending my project to other mac system its showing error like SDWebImage/UIImageView+WebCache.h File Not Found but the same project working in my system .some time i i am also getting the same error in my mac system after running the project continuously for 2 to 3 days
i tried all the ways like changing path to project>target>Build Settings>'header search paths>$(SOURCE_ROOT)/SDWebImage
also tried $(BUILT_PRODUCTS_DIR) - In header search paths,
please give me the some suggestions to solve my problem
Thanks in Advance
its only because the added SDWebimaege in your project its only reference so add folder of SDWebimages demo project in your project folder
and i am configure SDwebimage like this way:-
you need to first right click on your project name:->add files to yourProject-> selected SDWebImageproject and add them
NOTE:- please do not check copy option
now click on project name in Your xcode going to build phases:->target dependencies:-> click on + button and add SDWebimage ARC
now select link binary with library click + button add libSDWebimageARC.a and again click + and add imageIO.framework and also add libxml2.dylib thats it
going to Build setting:->other link flag:-> add -ObjC
and header search path add this three item
1 /usr/include/libxml2
2 "$(OBJROOT)/UninstalledProducts/include"
3 "$(TARGET_BUILD_DIR)/usr/local/lib/include"
now build and run its working like smoothly cheers.... :)
just try heading this in your frameworks path as well:
$(SDKROOT)/Developer/Library/Frameworks
I created a Cordova based application in XCode, and when I tried to the www folder of my project I did not find it.
Can anyone advise me where to find the www folder that should be included in the project?
Check the tutorial provided by the online doc very carefully:
http://docs.phonegap.com/en/1.5.0/guide_getting-started_ios_index.md.html#Getting%20Started%20with%20iOS
Normally, when creating your project, you should have turned off the ARC:
In case you forgot to turn the ARC off, you may try the following:
Select your project file.
Select the Build settings tab, and select the filter options All and levels (default is Combined).
In the search field to the right of the filter option Combined, enter automatic.
There will be a group called Apple LLVM Compiler 3.0 – Language containing the line Objective-C Automatic Reference Counting.
Click that line, then in the middle column (where it says yes), click and choose no.
The above should turn your ARC off.
Then, try following the next steps of the project creation:
You should see your project in Xcode 4 now. Press the Run button in
the top left corner. Your build should succeed and launch in the
simulator
You should see a error in your simulator informing you
index.html was not found
To fix this, we need to copy the www
directory into the project. Right click on the project in the left
navigation window and click show in finder
In Finder, you should see
the www directory beside your project
Next step is IMPORTANT! Drag the www folder into Xcode 4. You can't
just drag the www folder into your app's folder. It needs to be
dragged into Xcode 4!! In my case I would drag it and drop it on
HiWorld shown below.
After you drag, you should see a prompt with a few options. Make sure
to select Create folder references for any added folders. Click Finish
Continue from step 4.HelloWorld of the online doc...
Hope this helps.
This issue is not a major issue but has certainly made the process consume more time. When I build my application, indexing fails in one and only one file (.m file if it matters).
There is not intelligence, no color on global variables and most of the code except for important keywords are black in color. Since there is no intelligence, whenever I need to make changes, I have to see other files for doing the changes.
this happend for me when the file was not included in the target.
Method 1:
- Go to your project (the very first item in the project list) (cmd-1)
- select your target
- open tab Build Phases
- add your .m file in Compile Sources
Method 2:
- select your .m file
- show Utilities Pane (the one on the right side)
- first tab: show the file inspector (cmd-option-1)
- check the target in Target Membership
Here are the steps I follow when I face such a situation :
Clean the project, in Xcode menu Product -> Clean
Close the project
Open Organizer and go to Projects tab, select the project
Remove all derived data (the buttons are on the main view : Derived data and Snapshots)
Remove the project from the list on the left (select it and press backspace)
Finally close Xcode, launch it again and reopen the project
These steps will make Xcode rebuild the index for the whole project.
If indexing fails, try cleaning the product (or entire build folder). If that doesn't help, close Xcode, remove the DerivedData folder (you can find the location in the preferences "Locations" tab), and start Xcode again.
The indexing process will then try to re-index your files.
Hmm. Considering the normal Clean or Delete Derived Data solutions haven't worked, my next steps would be:
Copy the contents of the .m to the clipboard.
Delete the .m from your project (including sending the physical file to Trash)
Delete Derived Data
Try to compile the project (I know it will generate errors most likely, but let it do this).
Create a new .m file and paste the code back in.
Compile and run the project.
Delete Derived Data again to force a reindex.
Close XCode, reopen it.
Now hopefully it should be indexed. If this still doesn't work, try renaming that class (the .h and .m), see if it indexes, then rename it back again.
Try Product > Clean (XCode 4).
This can happen sometimes, it's annoying. If you get desperate, try creating a new project in a different location and copying the source files over.
I found solution to my question. Actually a localized file of that file was being created in en.proj folder, where indexing failed. So, I just copied that file into project main folder and deleted it from en.proj folder. It works fine now. I can see everything indexed.
Search for "GCC_INCREASE_PRECOMPILED_HEADER_SHARING" in your project build settings
Change 'increase sharing for precompiled header' from NO to YES
Hope this helps.
Go to Editor -> Syntax coloring, and change it to objective c. It might do the trick.
In my Xcode if i created new project it does not giving intellegence and i have to type all the Manual. It makes pretty difficult me. Why it is happening. Is there any setting i have to modify. Please help me any one.
Thanks in Advance
Fn + Esc will bring up a list of them, and you need to enable it in preferences
intellegence window not Appear then follow the Step :)
1) Clean the project, in Xcode menu Product -> Clean
2) Close the project
3) Open Organizer and go to Projects tab, select the project
4)Remove all derived data (the buttons are on the main view : Derived data and Snapshots)
5)Remove the project from the list on the left (select it and press backspace)
6)Finally close Xcode, launch it again and reopen the project
I am trying to select "Add Run Script Build Phase" under "Editor" > "Add Build Phase" in XCode 4, but the option is grayed out. Does anyone know why this would be happening? Thanks!
This is now different...again...in XCode 6. There's a "+" button in the top left corner of the Build Phases area that will give you the New Run Script Phase option. I'll come back after the NDA has lifted to post screenshots.
In case this wasn't answered, the step by step on adding a run script build phase is posted at http://runscriptbuildphase.com. It has the steps for Xcode 4 and Xcode 3.
Screenshot of new 'plus' icon initially mentioned by #d2burke for those who have had difficulty finding it in Xcode 6 +
Did you select your target and there the build-phases tab in the main view? then it should lighten up
hth
I'm new to Xcode too, but after googling same problem,i found that the solution is very simple.
you should press on your target( left panel, then u click on Build phase (not build setting) ), after that you can add new build phase settings.
I was just working on this same problem with XCode 5. Even if you are already on the "Build Phase" tab, you need to click Build Phase, then immediately click Editor --> Add Build Phase