Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAdam Ben-Horin
1,006 PointsI am getting an error that says there is a program with the .plist file and it cannot read it... what can be causing it?
error: could not read data from '/Users/AdamB/Desktop/C Programs/sphere class/MyFirstObjectiveCProgram/MyFirstObjectiveCProgramTests/MyFirstObjectiveCProgramTests-Info.plist': The file “MyFirstObjectiveCProgramTests-Info.plist” couldn’t be opened because there is no such file.
1 Answer
Judy Tsai
6,376 PointsHi, I ran into the same issue too. I think there is two target define: MyFirstObjectiveCProgram.app and MyFirstObjectiveCProgramTest.xctest.
I just started learning iOS dev so I am not sure where the test target came from and how to get rid of them. Maybe someone can answer that part.
However, if you download the Project template from the Teacher's Note. The project template does not have the two target issue. You can then either to recreate the Sphere.h and Sphere.m file or I just copy them from the project zip file, along with the main.m.
That seems to fix the compiling issue for me.
Hope this helps.
Jose Ramos
1,908 PointsJose Ramos
1,908 Points+1 to this. However I recommend typing the code out and not copying pasting at all. Practice makes perfect.
Gilmar Shlonberger
1,138 PointsGilmar Shlonberger
1,138 PointsMine is driving me insane. I have already deleted the Sphere class file and recreated a few times as well as start a new project from scratch. It insists that the location of my plist file is at: '/Users/gilcpd/Documents/OneDrive/Developments/Objective C/MyFirstObjectiveCProgram/MyFirstObjectiveCProgramTests/MyFirstObjectiveCProgramTests-Info.plist'
BUT: 1- The file is not named: MyFirstObjectiveCProgramTests-Info.plist it is named: MyFirstObjectiveCProgram-Info.plist 2- The directory MyFirstObjectiveCProgramTests doesn't exist. 3 - On Build Settings it's address is: MyFirstObjectiveCProgram/MyFirstObjectiveCProgram-Info.plist which is correct..
I had created a project a few classes ago (which im not using) adding the reverse domain "com.test"... thats the only thing I can think of where it is taking the test word... other than that I've tried everything.
OH and Im using the file from TreeHouse :-/
Jose Ramos
1,908 PointsJose Ramos
1,908 PointsGilmar Shlonberger :
Just to clarify, you are using the template files (under Teachers Notes) right, NOT the download files (under Downloads)?
This is what did the trick for me.
Gilmar Shlonberger
1,138 PointsGilmar Shlonberger
1,138 PointsHummm good one Jose. I'm using the one from the download not the template. I'll try this later on at home. Thank you for now.
Gilmar Shlonberger
1,138 PointsGilmar Shlonberger
1,138 PointsJose Ramos thank you very much I downloaded the template file instead of the sample ;) It works
Jose Ramos
1,908 PointsJose Ramos
1,908 PointsGlad to hear it works! Happy to help :)