My friend gave me his old iPhone app project files. I tried to open with my Xcode 4.2 but error message shows "cannot be opened because the project file cannot be parsed." then unable to open.
It doesn't have any space in project name. Does anyone know how to open this?
Thanks in advance!
your xcodeProject file is corrupted. you need to get it again. but first ensure that xcodeProject file is able to load project successfully from where you are receiving it again.
Related
I am running Xcode 9.2 on 10.13.3 and just today ran into a problem with Xcode not recognizing Main.storyboard on an app that I am building. It worked on Friday and then today when I opened the app to work on it I get the following error:
.../Base.lproj/Main.storyboard: Interface Builder could not open the
document Main.storyboard" because it does not exist.
Visually the file is there but does not respond. It is listed correctly in info.plist.
I tried pulling versions from Time Machine from last week and I still get the same error.
Is there anything short of rebuilding the storyboard that I can do to get Xcode to recognize it?
Did you try Removing the storyBoard and Re-Add it in Main Bundle ? Just make Copy of your Storyboard and Delete it from Xcode Project and Again Drag And drop the copy made in Xcode Project with check Copy items into destination group's folder (if needed)
And
Also check
Link - Interface Builder could not open the document ".storyboard" because it does not exist
Other options are Also Provided there
When you upload your file to google drive without zip, it appends the extension of .storyboard to .xml automatically and hence when you download it obviously the file won't exist. To solve this issue, go to the [project folder]>[Project folder]>[Base.lproj]. There would be a .storyboard.xml extension type of file which you would have to rename it to the .storyboard extension. And hence your work is done.
Story board error solving visual guide.
Delete derived data. The location is under xcode>preferences
Follow below steps:-
1.Save a copy of the affected file outside of the project
2.Delete the file from the project, selecting Move to Trash to completely
3.delete the file and reference from the project
4.Edit ProjectName.xcodeproj/project.pbxproj to remove all lines referencing the affected file Re-add the file, making sure to check
Copy items into destination group's folder (if needed)
5.Clean and build
Try opening Xcode and go to runner then double click on the main storyboard then uncheck runner , that worked for me.
It shows unable to open file for read: no such file or directory
(the directory shown in the error message should be linking to the Android SDK folder, the directory shown in the error message is wrong and i tried to rename the folders to make the directory correct but it doesn't work as the directory shown in error message change every time...)
Is there any way to fix it? i have reinstalled it but still doesn't work. Thanks guys
You shouldn't change the name of the SDK Folders.
I suggest you to install a fresh Android SDK from
http://services.smartface.io/File/Download/installer_r23.0.2-windows.exe
After that, set the path again from File -> Project Details -> Android SDK tab.
While creating an ad-hoc build in Xcode 4, I get an error "Operation couldn't be completed. No such file or direcotry exist" when I select Share in "Organizer - Archive" window. I have also included Entitlements.plist file, even status message also displays the build is successful.
I don't know what the problem is and where am I going wrong. Please suggest.
After downloading XCode 4.3 beta with the IOS 5 SDK, the Organizer function to share and archive stopped working with a cryptic error "No such file or directory found".
It turns out that this is related to having two different versions of codesign_allocate . To fix the problem, do the following in a terminal window.
sudo ln -s /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate /usr/bin
I've put this on my blog http://blog.dmahajan.net as well.
Did you sign the archived version with your Ad-Hoc profile, if so then select "don't Re-sign" in the share screen drop down.
Guys,
Another thing I found is that if you've developed an app in xcode < xcode4 and you are creating builds in xcode4 then you might get this error.
To resolve this, follow these steps-
1. In Entitlements.plist, add a key- "application-identifier", type- "String", value - "$(AppIdentifierPrefix)$(CFBundleIdentifier)"
Now create an "Archive" build, when the window appears, right click on the app name and "Show in finder".
AppName -> Right Click -> Show Package Contents.
Products -> .app file. Now use this .app file along with the provisioning profile.
This solution worked for me very well.
Another possibility: duplicated keys in your keychain. Solved my problem.
Since moving to XCode4, I have been getting errors like:
/VERSION: No such file or directory
cp: /javascripts/phonegap..js: No such file or directory
cp: /javascripts/phonegap..min.js: No such file or directory
error: /VERSION: No such file or directory
for projects that were working under XCode3.
Open XCodes Preferences, and navigate to Source Trees. If there is no PhoneGapLib entry there, try adding a new setting with the following values:
Setting Name: PHONEGAPLIB
Display Name: Phone Gap Lib
Path: /Users//Documents/PhoneGapLib
Note that the path should be to the location of your PhoneGapLib folder, and that it may not be in your documents folder, depending on how you installed PhoneGap.
I just learned about a great web service recently made available by Nitobi (makes of PG), which will automatically generate the necessary PhoneGap files you need for use in Xcode 4.
Just enter your project name, hit a button and they'll generate a zip file for you to download. This lets you set up a new project without messing with the command line.
You could set up a new project, then migrate your older project files over.
Did you search Google for this error?
I'm a bit of a noob with PhoneGap and Xcode still, but I know there have been recent issues with PG and Xcode 4. Perhaps you're experiencing the same issues as the commenters to this post: PhoneGap + XCode4 (and more specifically, here).
Today I started xcode and opened my project and the code is different, it have lost its colors, for each variable, nsstring ect..
when i build my project into my iphone, i dont get the GUI im making.. no matter what changes im making in xcode, im getting the GUI as when i builded it here in the morning..
What chould have happend and what can i do?
Thanks.
Delete your build folder and retry.
If you don't know where to find your Build folder got to:
/Users/%USERNAME%/Library/Developer/Xcode/DerivedData/%projectname*/
That is the default folder for XCode 4 to place the projects buildfolders in.
Edit***
Sorry, forgot one folder.