简体   繁体   中英

Compilation fails in Xcode 4.6 while creating archive for adhoc distribution.

I am new to iOS. and i am trying adhoc distribution ipa file from xcode.

1) I could able compile and run the application in the iphone/ipad.

2) But when i create archive, i am getting compilation error saying 'something.h' not found.

Could someone kindly direct me what could be wrong?

1-Try to open the organizer (Window -> Organizer), then the Projects tab. Select your project then hit the delete button next to the derived data path (to the right). Confirm and let it re-index your project.

2-Go to your project folder, Press on YOURPROJECTNAME.xcodeproj and right click and go to show package contents . Leave the project.pbxproj file, but delete the project.xcworkspace file, any .pbxuser files, and the entire userdata folder.

I hope it works..

If you are putting things in a group in the XCode project navigator, and it is not an actual folder, you do not need to do Mountain/Mountain.h . You would just include Mountain.h .

When creating a group in the project navigator, by default, these are not actual folders, they are just virtual project folders, so if it is trying to see the Mountain folder and it does not exist, you will get that error.

It is weird that it will compile and run otherwise, but just give that a shot, let me know if it works.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM