Discussion Forums  >  Uncategorized

Replies: 7    Views: 252

martinezaw
Apple Fan
Profile
Posts: 11
Reg: Nov 23, 2011
Earth
110
11/24/11 12:39 AM (14 years ago)

Having problems with BT folders

Whenever I try to use an image in the BT_images folder or a doc in the BT_docs folder, it does not show up in my app. If I use a URL it does. I added the files after downloading the project. I also noticed that the images don't show up in the BT folder in Xcode as well. They are in the folders though.
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
11/24/11 07:50 AM (14 years ago)
Sometimes you have to clean then build to pull in new images and docs, it kinda recycles it all for you.
 
martinezaw
Apple Fan
Profile
Posts: 11
Reg: Nov 23, 2011
Earth
110
like
11/24/11 10:42 AM (14 years ago)
I clicked clean and then build again. Now I can't see the BT folders within Xcode. I tried again to reference a jpg image I have in the BT images folder but the app still won't show the image after refreshing.
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
11/24/11 10:49 AM (14 years ago)
Cleaning doesn't remove folders, rather it just clears the build cache out if you will. Close xcode and fire it up again opening your project, you should see the folders then or you have maybe just selected the wrong tab within xcode and the folders haven't actually gone you just aren't viewing them at the moment. Check for spelling mistakes in the jpg name and corresponding reference in BT and try deleting the app from your phone and firing it up again.
 
martinezaw
Apple Fan
Profile
Posts: 11
Reg: Nov 23, 2011
Earth
110
like
11/24/11 11:17 AM (14 years ago)
Ok,I see my folders again, but the images are still not showing in the BT folder in Xcode, only on the BT image folder in the Mac. I am using Xcode 4.2.1. I have tried cleaning, building, closing and reopening xCode and still the images won't show up in Xcode's BT image folder. I originally had been running the Xcode project from the download folder. I even moved the source code folder to be under my Documents folder. Build and ran that, still no luck. Do you think I should uninstall and reinstall XCode?
 
Stefan
buzztouch Evangelist
Profile
Posts: 558
Reg: Dec 21, 2010
Sweden
14,780
like
11/25/11 06:01 AM (14 years ago)
@martinezaw When you add the images make sure that the checkbox Copy items into destination group's folder (if needed) is marked. Otherwise file is not imported into the xcode. BR/Stefan
 
martinezaw
Apple Fan
Profile
Posts: 11
Reg: Nov 23, 2011
Earth
110
like
11/25/11 11:49 AM (14 years ago)
Thanks Stefan... That worked!!
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
11/25/11 12:05 PM (14 years ago)
When you drag them across from finder into the project folder a pop up box will appear asking if you want to create folders for files etc
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.