Xcode 6 Beta - Apple Mach-O Linker error - ios

After updating to the recently released beta 6 of Xcode 6, my swift project fails to build due to the following errors.
Looking at previous questions on this issue, propose checking the build architecture is set to support arm which mine project includes already (arm64, armv7s, armv7).

First, make sure you have the most recent beta installed. Afterwards delete your DerivedData folder ( ~/Library/Developer/Xcode/DerivedData ). This should allow you to compile again in the latest beta.
Edit: This appears to hold true for the newest beta version of the Xcode as well

From what I hear, so far Xcode 6 Beta 6 is broken. You should uninstall and rollback to Beta 5.
Edit:
Apparently, a new version is already out, just reinstall beta 6
http://9to5mac.com/2014/08/18/apple-re-releases-xcode-6-beta-6-solves-issues-discovered-by-developers-in-new-build/

Make sure you install the latest Xcode Beta 6 version. If you check Xcode->About Xcode, you should see: Version 6.0 (6A280e)

I had the same problem. I reinstalled Xcode. then it fixed the problem.
In my case it happened because of deleting a imported framework(move to trash) which is inside my project navigator. I think Xcode delete the whole framework when we delete(move to trash) imported framework from our project navigator.

Make sure you haven't done any unnecessary imports example importing an .h file when you needed .m

Related

How to open a Xcode 11 Beta 4 project in Xcode 10?

I worked on a project in Xcode 11 Beta 4 and then downgraded to Xcode 10 and can't open the project.
I want to submit my app to the app store, but I kept getting error messages in Xcode 11 beta 4. I'm a beginner and I know I tampered with the build settings trying to make it work. I deleted Xcode 11 and downloaded Xcode 10 to try and archive through that, but now I can't even open the project with Xcode 10.
I started the project on Xcode 9, I believe. I tried archiving, but there was an "SDK Version Issue", something with the old iOS. So I updated my Mac's operating system, and replaced Xcode 9 with Xcode 11 beta. That came with many more errors trying to archive, and I changed architectures and proxies and all that. So I deleted Xcode 11 and tried Xcode 10 but I can't open the project.
It says:
"cannot be opened because it is in a future Xcode project file format. Adjust the project format using a compatible version of Xcode to allow it to be opened by this version of Xcode."
How do I solve the problem?
You are probably getting a ton of Swift errors. The release notes for beta 4 acknowledge this is an issue.
The official workaround is to a custom build setting with the name LD_VERIFY_BITCODE, and set it to NO.
Just remember to remove when issue is resolved!
If problem still persists for XCode 11 beta 4, then try setting "Library Search Paths" to :
$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)
Credit: https://stackoverflow.com/a/57126566/5576675
I update Xcode to 14.1, and fix this Hundreds of compile errors.
You can try to update newest xcode.

Running Swift 4 code on Xcode 8.3 - issue with Xcode Snapshot

I am facing issues with XCode snapshot.
Actually I have Xcode 8.3.3, but I need to run Swift 4 project on it. Upgrading OSX and Xcode version is not an option for me.
I followed the accepted answer from here: Is it possible to compile Swift 4 on Xcode 8.x?
I downloaded Xcode snapshot (latest, 30th Dec release of toolchain) from https://swift.org/download/#snapshots
and made the required settings of toolchain. However, I am encountering a strange issue.
Again, to resolve this, I tried the accepted answer on link Could not build Objective-C module '_SwiftUIKitOverlayShims'
however, even this does not seem to work. Please suggest where I am going wrong.

How can i add libz.1.2.3.dylib to iOS 9.1 in Xcode 7?

when i wants add libz.1.2.3.dylib to project, but i can not found it, just found like libz.1.2.*.dytbd, how can i add this?
my environment Xcode 7, iOS 9.1.
please give me some help, many thanks!
For your information from Xcode 7 libz.1.2.3.dylib and all .dylib Framework change into .tbd Framework. And That's also not effect to old version Xcode version

Xcode 7 ValidateEmbeddedBinary error Could not read data in foo-WatchKit-App.app

I am trying to do a full build on an iOS App with a WatchKit App as well.
When compiling the full project for Archive I am seeing the following
ValidateEmbeddedBinary DerivedData/lifa93/Build/Intermediates/ArchiveIntermediates/lifa93Dev/BuildProductsPath/Release-iphoneos/lifa93.app/Watch/lifa93-WatchKit-App.app
cd /Users/lordandrei/Projects/git/X7/lifa93
export PATH="/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode-beta.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
builtin-embeddedBinaryValidationUtility /Users/lordandrei/Projects/git/X7/lifa93/DerivedData/lifa93/Build/Intermediates/ArchiveIntermediates/lifa93Dev/BuildProductsPath/Release-iphoneos/lifa93.app/Watch/lifa93-WatchKit-App.app -signing-cert *9F…FB* -info-plist-path /Users/lordandrei/Projects/git/X7/lifa93/DerivedData/lifa93/Build/Intermediates/ArchiveIntermediates/lifa93Dev/InstallationBuildProductsLocation/Applications/lifa93.app/Info.plist
error: warning: Could not read data in /Users/lordandrei/Projects/git/X7/lifa93/DerivedData/lifa93/Build/Intermediates/ArchiveIntermediates/lifa93Dev/BuildProductsPath/Release-iphoneos/lifa93.app/Watch/lifa93-WatchKit-App.app
I have tried:
toggling between Debug and Release
toggling No Install and No Validate.
revoking and replacing all profiles (Signing, adhoc, dist)
So far nothing has made a dent.
Suggestions welcome as I am in a holding pattern trying to build.
Xcode: Version 7.0 beta 3 (7A152u)
iOS: 9.0 beta 3 (13A4293g)
Radar: 21975256
I had this issue when I was trying to build to my iPhone 6+ and Watch. I had just re-installed Xcode 7 Beta because I accidentally deleted one of the needed frameworks. I tried building several times and received the same "Could not read data..." error. I finally built to the simulator successfully, AND THEN built to both devices and it worked.
My issue now is that builds to Apple Watch seem to take forever to run or pass "Attaching...".
I don't know exact reason of your problem, but I created new project that includes WatchKit App target as well. And it works fine, no problems with building process.
I am using Xcode 7 beta (7A120f).
That's why I propose 3 potential ways to resolve the issue:
1. Create new new project from scratch and migrate source and resource files from your current project to new one. I had similar problems (it wasn't related to WatchKit app) previously and this trick helped me.
2. Install latest version of Xcode. Xcode 7 beta 4 is released on 21st of July.
3. Install Xcode (7A120f). This is version that I am using, you are using different one. I don't think that it will help, but who knows.

Not able to run once renaming is done in Xcode 6

I renamed a project in Xcode 6.3 and I found the Active Schema in the tool bar has changed to settings kind of Icon and I can't run the project in simulator as well as in device.
How can I get rid of this. Please clarify..
There is a bug in xcode 6.3 which leads to unexpected behaviour when you rename a project.
Read the following post to rename your project in case you dont have a backup.
Xcode 6.3 is crashing on Project Rename

Resources