Unable to build iOS Project on Xcode 9? - ios

I was running ios project on Xcode 8.3.2 and it was working fine.
Now I am running same project on Xcode 9 Seed. And I am getting lots of warning with fix suggestion. When I use Fix option it adds stub methods in the implementation Class and after that it give number of errors.
And I am trying to build project on Xcode 9 , it stuck at initialising datastore and never complete even after two or three hours later .
Can anyone have any idea how to resolve this issue ?

Related

What's wrong with my Xcode 8? I cant even compile new project?

I have two Xcode in my computer. Xcode 7 and Xcode 8. I work with Xcode 7 a lot because some projects cannot be migrated successfully into Swift 3, and I don't have enough time to go over every errors. But when I have new project, I use Xcode 8.
I remember that I have successfully using Xcode 8 to create a project without problem in the past. Today, I create open that project again in Xcode 8, but there are hundreds of errors. I tried to create new project, and compile. I also get lots of errors. Why is this happened?
EDIT: Anyway, it's resolved now, after I reinstall the Xcode. But that doesn't addressing the problem at all. But I can't reproduce it again now.
Your project is successfully running in my x-code.
Sometimes, x-code issues may be you face like this one. Now you re-installed the x-code so your project is running properly.
When you want to migrate project from swift old version to updated then you face this kind of issues.

Xcode 8 convert code to swift 2.3 not running in device target

I have been converted my swift code to 2.3 version. App is running perfectly in simulator for all the version like 8.0+, 9.0+, 10.0. But it is not at all running on physical device, showing multiple errors like "Could not build module Frameworkname" and many more regarding frameworks and I am using some classes which were written in Objective C to my swift project those are totally showing errors while running in physical device. Any help would be appreciated.
Eventually, I get rid of this issue, Its all about the Xcode issue, may be some files been deleted from the Xcode. Installing new copy of Xcode is resolved the issue.

Enabling zombie Objects on Xcode 7 GM causes Class _NSZombie_BSXPCMessage is implemented in both ?? and?

Just downloaded XCode 7 GM and give a try on iOS 9 simulator of my app. However, I got a strange message on the console:
objc[2213]: Class _NSZombie_BSXPCMessage is implemented in both ?? and ??. One of the two will be used. Which one is undefined.
I then googled and no luck. If I disable the enable zombie objects in scheme settings, the message is gone. What's wrong?
Update: I tested it again on Xcode 6.4, no this problem.
First of all delete your installed application from ios simulator or device,after that clean your projects.
When you will run your application, it should run your Projects properly without any errors.
I have also faced same problem.I have used above, it was worked for me.
If above is not working, so please clean your build cmd+alt+shift+k and also reboot your ios simulator from hardware menu.
it should run your Projects properly without any errors.

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.

Could not build module 'Foundation' in Xcode 6

I have searched Stack Overflow, Google and fellow peers for a current workaround in Xcode 6 for this error but have failed in doing so.
Note that this error occurs ONLY when attempting to run my app ON A DEVICE USING XCODE 6.
(This is not an issue when using the simulators, and I can build my app on a device using Xcode 5)
It seems to be a framework or library issue, but since it is able to work in almost every other possible way, I am not sure where the solution resides. I was using Xcode 6.0.
Here is the error:
I have checked my architecture settings, my frameworks and project files. Everything that needs to be included seems to be there.
This looks like it might be a silly error to do with Cocos2d and/or Xcode6. I have used SpriteBuilder to create the app. If you have a fix or have this error, any insight would be appreciated, thank you!
Found a fix. Downloaded the new Xcode6 version from the App Store. Xcode 6.0.1 (6A317) and it runs on all devices and simulators.
(There was no notification to update Xcode, you must search for it and download the new version)

Resources