Building MailCore framework for iOS? - frameworks

Hello I'm trying to build MailCore framework since two days... it's giving too many errors.
first it was giving 'config.h no such file' error. I downloaded another copy of MailCore and this one is giving two errors
1-target specifies product type 'com.apple.product-type.framework', but there's no such product type for the 'iphonesimulator' platform
2-Internal error occurred while creating dependency graph: ASSERTION FAILURE in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-928/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/Target.subproj/PBXTargetBuildContext.m:1966
please help me out.. I'm sick of it.
Thanks in advance.

I solved the issue by implementing the instructions exactly what is told here... http://libmailcore.com/...
no need to build framework... just include the files in your project as told by the link I've mentioned and you are done...

I can only speak to that "config.h" error:
Turns out you have to have MailCore in a folder with no spaces in the directory path.
See: https://github.com/mronge/MailCore/issues/35
I moved the folder to /Users/bill/Documents/dev/lib/MailCore and was able to build the project there. Leaving MailCore at that location, I dragged the MailCore.xcodeproj file into my project (located elsewhere on the hard drive) and was able to compile my project.
Would be nice if someone would add this as a warning to to the directions here

Related

Showing Recent Messages error: Could not get GOOGLE_APP_ID in Google Services file from build environment

Just shown up on my Xcode a couple of hours ago and none of the other stack overflow answers are working. Anybody know how to fix this? My project won't build or archive(currently using Xcode 10.2) Thank you!
To fix this error, Make sure you have firebase script above the "Copy bundle resources" in Build phases section of your target in Xcode.
I assume you are using Google Firebase.
As the error say your GOOGLE_APP_ID could not be found.
Solution
Drag "GoogleService-Info.plist" in your project folder. This configuration file is generated when creating your project. If you don't have it you might want to regenerate it again as described on Firebase Console

Apple Mach-O Linker Error while Archiving Project

I am getting the error while archiving the project, I googled it for the exact solution but they doesn't meet my requirements.
Apple Mach-O Linker Error Command/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang failed with exit code 1
Some of the solution which I got,
Import the file #import “xView.m instead of #import “xView.h
Cleaning the build and restart the xcode
Missing of frame work
But it doesn't worked for me, even my project running while testing it in simulator.
Finally i solved my issue , actually in my project i have two images which have the same name generally xcode not accept the same name of file but some where it accepted and due to this i am getting the error every time while archiving the project , so i removed the duplicate image and archive the project sucessfully.
hope this will help you guys .
This error generally occurs when some file is missing in the build files. Check if you have remove some class file & its entry still exist in project file.
You can see it in build settings. Hope it'll resolve your issue.
If still not solved, ping the total description below the exception as found in XCode.
There are many fixes but what was my problem was that I did not need a framework anymore, and I removed it but in one of my files it declared the framework at the top still and used that framework. Deleted it and it worked! Plus check if you have not messed anything up in your AppDelegate.m

Three20.h file not found when building with xcodebuild

I build my project(include subproject Three20) successfully using xcode GUI,but when I use xcodebuild,it failed with this below:
/Users/***/MyProject/Classes/ComposeSMSViewController.h:14:9: fatal error: 'Three20/Three20.h' file not found [1] #import <Three20/Three20.h> 1 error generated.
my Header Search Paths are $(BUILT_PRODUCTS_DIR)/../three20 and $(BUILT_PRODUCTS_DIR)/../../three20 and Classes/Three20/Build/Products/three20
That works on GUI building but failed on xcodebuild.
How can I solve this? Thanks
I think you should restart three20's install , it need several steps and make sure it's without mistake. Best regards. It may help you: http://three20.info/article/2011-03-10-Xcode4-Support
If it still doesn´t work (and an error like "Three20.h file not found" is shown), try setting "Skip Install" to "Yes" for all of the Three20 dependencies and projects in your app (except your main project): graphically . This onle creates an .ipa for your project, but not for your three20 projects.
I resolved this issue today by accident. I tried all the solutions I found online and it didn't work. I was pretty confident that the problem was within xcode because the app built fine on my boss's machine. Turns out my scheme name didn't match my target name. This was a result of duplicating a target, which automatically named my scheme to "myapp copy". When I matched the scheme name to the target name, everything worked fine and the three20.h file was found. Hope this helps anyone with similar circumstances.
Product-> Manage Schemes... and rename the file

ZipKit and Xcode 4

We're trying to set up ZipKit as part of our Xcode 4 project using these instructions and we're having trouble getting our application to compile.
Here's the setup we currently have (as I'm not allowed to post images, I'll just give you the links to them):
Project Setup
All builds are set to go into a shared directory:
Xcode Preferences.
When building the app, we get the following error:
UIUpdateDownloadDialog.m:10:9: fatal error: 'ZKDataArchive.h' file not found 1
That line in UIUpdateDownloadDialog.m says #import "ZKDataArchive.h".
Any ideas on what we're doing wrong?
Thank you!
I'm sorry it took so long to respond, but my schedule has been very hectic.
We managed to get ZipKit working under XCode 4 and be able to build for both the simulator and devices.
Here's how we did it:
We opened the Demo project from ZipKit and went all the way down to find the included ZipKit.xcodeproj.
Once we had that, we opened our project and [dragged ZipKit into the frameworks folder of our project. http://i.stack.imgur.com/zcbYR.png
We changed the build settings of both the targets in our project (as well as the static library touchzipkit) to Build Active Architecture Only.
We were then able to build everywhere.
In fact, last night we were about to send the app update to Apple, but when trying to create the archive we got a linking error! But that's a question on its own.
Thank you all for trying to help!
It looks like there is a ZipKit framework - try adding that to your project instead of the whole project and importing like so:
#import <ZipKit/ZipKit.h>
The other alternative is to try adding the Zipkit directory to the include path, though having ZipKit as sub-project should include all the classes and header files.

Project build issue

I am getting this error while building my project:
_OBJC_CLASS_$_ in .o symbol not found
What could be the potential reason for this.
Clean all targets (cmd-k) and then build again and see if that message goes away.
I got it. This was happening because I was using a external library which I was not including while compiling the code though was referring it in the code.