How to change build system information path on Xcode? - swift

I got those 4 errors when I open my Xcode project.
/Users/khcw1007/Manao-iOS/manao/Pods/Pods/Target Support Files/Pods-manao/Pods-manao.debug.xcconfig
I've 2 'Pods' in the path of xcode but in reality I've only one, I think that's my error come from here. Where can I edit the path to fix it ? I can't build my project in Swift.

Ok, fixed. I just uninstall and install Xcode again.

Related

Xcode 5 - Required plug-in not present in DVTPlugInCompatibilityUUIDs?

After upgrading Xcode to v5.0.1, I started receiving following warning in terminal when trying to run git commands inside project folder:
[MT] PluginLoading: Required plug-in compatibility UUID
37B30044-3B14-46BA-ABAA-F01000C27B63 for plug-in at path
'~/Library/Application
Support/Developer/Shared/Xcode/Plug-ins/Unity4XC.xcplugin' not present
in DVTPlugInCompatibilityUUIDs
I am not getting any warning inside Xcode and the project is compiling just fine but there must be a reason. Any ideas why is this happening and how to fix it?
I modified a shell commands I found here to fix this for all my plugins.
To fix this issue:
XCODEUUID=`defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID`
for f in ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/*; do defaults write "$f/Contents/Info" DVTPlugInCompatibilityUUIDs -array-add $XCODEUUID; done
Try to do : xcode-select --install. It resolved my problem
In my case of Xcode 7, remove all Xcode plugins fixed my issue.
rm -rf ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/*
I believe the issue is that you have an Xcode plugin installed that has a missing (or has an incorrect) DVTPlugInCompatibilityUUIDs key-value pair in its plist file. See what this plugin did to solve it: https://github.com/gfontenot/XVim/commit/35bbf24bc074e330a9bea852c190d8fdcbfff1ea
Maybe check if your plugin (looks like it's for Unity) has an updated version.
I had deleted unity from my machine. After installing unity the builds worked for me. I was trying to build an app using robovm.
Maybe it is a bit late, but I had just to restart Xcode after an Xcode update and press the install components button when it showed up. Then my git problems were gone.

Xcode 4.5 building error: Malformed Object

I'm trying to build a project with Xcode 4.5.1, created with Xcode 4.4, but I'm getting following error:
codesign_allocate: for architecture armv7 object:
/Users/myUsername/Library/Developer/Xcode/DerivedData/MyAPP-araevdowzmmoupfieakjpjmpsmhq/Build/Products/Debug-iphoneos/MyAPP.app/MyAPP
malformed object (unknown load command 36)
/Users/myUsername/Library/Developer/Xcode/DerivedData
Can somebody help me please?
Thank you!
Update:
I still have this problem but only when compiling for iOS Device, not for the simulators. I'm not able to create an archive.
PLESE HELP ME!
SOLVED
The problem was due to a "Run Script" in Build Phases I was forgotten....and that pointed to the old path /Developer
Delete your derived data, perform a clean build, and try again.
To delete your derived data, go to Organizer->Projects, and select `Delete...'
To do a clean build, select Project in Xcode, and select "Clean"
Update: Validating your project settings may help here also. Go to your Project file in Xcode and select it.
Update 2: Something seems to be interfering with codesign, causing it to use an incorrect loading command. Maybe your old version of Xcode (4.4) left some artifacts behind, which is causing an old version of codesign to be run. I'd suggest uninstalling any instances of Xcode you have, make sure they're all gone, then re-install the latest version.
Update 3: I'm at a loss, I've no idea what's going on. My last suggestion is to create a new Xcode project, and migrate your stuff over; something may have interfered with your build settings, which might be a case of looking for a needle in a haystack. Make sure you have the latest Xcode and OS X.

XCode 4.5 giving me "SenTestingKit/SenTestKit.h" file not found, but works on 4.4.1

I just installed XCode 4.5 and it's giving me a 'SenTestingKit/SenTestingKit.h" file not found error on one of my existing projects. This error only happens in XCode 4.5, but it compiles fine on 4.4.1. I've checked that the SenTesting framework has been added to the test target and I verified that the same error occurs on a few other machines. Has anyone else come across this?
Thanks in advance for your wisdom!
UPDATE
I was able to fix this issue by placing quotes around some of the framework search paths in build settings...
"$(SDKROOT)/Developer/Library/Frameworks"
"$(DEVELOPER_LIBRARY_DIR)/Frameworks"
Since I installed the XCode 4.5 GM alongside 4.4.1, I'm guessing the 4.5 version had a space somewhere in the name.
Perhaps it's just missing the framework and before it just referenced it and not copied to your project folder.
This might help:
You can click on your App Name and then the "Build Phases" tab near center of screen. Then go down to "Link Binary with Libraries" and click the "+" symbol and type "SenTest" and the framework should appear. Double-click it and it will add it to your project. In your project explorer you may want to "drag" that into the "Frameworks" folder just for organization.
I don't have same error and have both versions of XCode so am just guessing what it could be. I hope this is helpful.
Also that is pre-release software so might not be able to discuss publicly. See this SO article regarding similar issue during previous upgrade.
SEE: Xcode - SenTestingKit not found
I had a similar problem with libxml in XCode 4.5 and I managed to solve it by changing the reference to the framework in Build Settings of the target. Strangely, I changed ($SDKROOT) to "($SDK_DIR)" (notice the "") and it worked. Don't know why but it fixed it.
Maybe this will help
BTW, if anyone knows why the "" fixed it, I would be glad to know !
SenTestingKit/SenTestingKit.h file not found error on one of my existing projects. You can click on your App Name and then the Build Phases.

Can't compile Three20 template on iOS4

I pulled the latest version of three20 from github and installed their template. I opened it up in XCode, built it, ran it, then I realized the template isn't iOS4 ready.
The first issue I found was "Base SDK not found". I solved it in Edit Project Setting by changing the Base SDK to "iOS Device 4.1".
Then I ran it again. I got tons of errors related to "Three20/Three.h: No such file or directory". I added the "../three20/src" to my Header Search Paths but it doesn't help.
Does anyone know why? What else should I change?
FYI:
XCode Version 3.2.4
Latest version of three20 (29 September)
Directories:
xcode/myproject/
xcode/three20/
PS: the template works fine in SDK 3.0
I was pulling my hair out as well since adding three20 correctly to your new iOS4 with really basic instructions listed here: http://github.com/facebook/three20 did not work as well.
Issue: Can compile newly three20 to your iOS project and got this error: Can't find #import "Three20/Three20.h".
Here is the best solution for those have the same issue:
1) Add your three20 to your iphone project path like this:
[yourProjectPath]/[iOSProjectName]/three20/..
2) cd three20 dir
3) run:
python src/scripts/ttmodule.py -p [yourProjectPath]/[iOSProjectName]/[iOSProjectName].xcodeproj Three20 -c Debug -c Release
4) go to XCode and do a build now.
Thanks to jverkoey for adding this in ...man
u save us a lot of headache if u ever read this :- ) kudos bud! :- )
http://github.com/facebook/three20/commit/0814b1c149cbe987557c88a271f999c3f9f3ae64
Please vote this answers if it help u. Thanks :-)
Turn out I have to use http://github.com/ECP/three20 instead .
An answer I got from twitter - "need to manually set build target of each projects"
He might be right.
My solution was to add the following to the Header Search Path in Xcode:
three20/Build/Products/three20
Xcode 4 screen shot:
Yours may be different of course, but maybe this will help someone.
Also, try checking the Deployment Target under Project Settings, for both, Simulator and Device. In my case, I got thousands of errors because the target was set to 2.2. It seems there is no support for 2.2 anymore in iOS 4.1 and Xcode 3.2.4.

iPhone Development - Compiler Warning!

Sometimes when i try to "build"/compile a downloaded source, i get following warning:
ld: warning: directory '/Volumes/Skiiing2/CD/ViewBased/Unknown Path/System/Library/Frameworks' following -F not found
Has anyone else seen this issue?
I just upgraded to iPhone SDK version 3.2, and ran into this problem. It looks like it happens on all my projects that were created with the 3.1.2 SDK.
After some amount of searching, I finally was able to find it in the project settings. You have to "Get Info" on the target to find it. Click the "Build" tab, and scroll down to "Search Paths". It can be deleted from there.
Yes. I've found this path in search path settings but not for project but for target!
this specific warning with the 'skiing' reference was a bug in the latest xcode beta for iPad. make sure your running either the latest xcode beta or the latest production xcode.. you should not see that warning again.
Your project is set up to use a framework that was once on a removable disk of some kind, that is no longer there. You can make the warning go away by removing that path from the linker command line, you'll find a property in the project somewhere that references it.