This Question can be repeated, but i have tried with all solutions available on web.
I'm trying to open flutter project in xcode by opening Runner.xcworkspace file from ios folder,
but facing following issue.
Couldn't load Runner.xcodeproj
Couldn't load Pods.xcodeproj
P.S have tried installing Pods
P.S Have multiple build flavors
EDIT
Today is i got the error popup with following message
The project at '/Users/nikhilsawant/StudioProjects/zingoy-flutter/ios/Runner.xcodeproj' 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
Anyone have any idea how can i fix this without update xcode, As i don't have any free space.
Related
I am trying to run the initial example apps generated by the Kotlin Multi Platform Mobile plugin in Android Studio. I followed these steps for my environment setup. The Android Simulator runs correctly, but the iPhone Simulator does not. The Run Configuration has the following error:
Error: Selected scheme "iosApp" does not support "iphonesimulator"
When I run the configuration (ignoring the error), the iPhone simulator does open and appears to load iOS, but it never loads the "Hello, iOS" application that is in Android Studio.
What would cause this?
Version Information:
macOS 12.2.1
Android Studio 2021.1.1 Patch 2
Xcode 13.3
I fixed it with the following method.
Please close the Android Studio.
Go to ~/Library/LaunchAgents/ folder and delete com.jetbrains.AppCode.BridgeService.plist there.
Launch Android Studio with the KMM plugin again. It should work now.
From my tests, it seems that there may be multiple reasons for which we receive this error:
the root folder of the ios project has a different name than the .xcodeproject file. Sometimes it works even if they are different and maybe it matters if we change this name after the frameworks was already connected to the iOS project.
"Other linker flags" were manually copied and they were not copied using the copy button from the Connect the framework to your iOS project. This results to wrong data like:
"$(inherited)",
"-framework",
"shared\n",
instead of
"$(inherited)",
"-framework",
shared,
I managed to fix this by going into Edit Configurations on Android Studio and choosing the location of my XCode project file again. I believe this is an error of the KMM plugin in Android Studio and has yet to be fixed.
Updating Android Studio and KMM plugin worked for me.
I have a Flutter project in Android Studio which uses Flutter Flavors. I understand that the Xcode "equivalent" is to use schemes and found various blogs and how-tos explaining this but they all seem to assume that I can open the project in Xcode.
Is there a way to open the project in Xcode? Can I do that and then still work in Android Studio (to build/debug the Flutter/dart code)
Can I create the Xcode schemes inside the Android Studio project?
Is there some other solution?
Note: running xcodebuild -list inside the AndroidStudio project directory says "error The directory does not contain an Xcode project, workspace or package` which makes me hopeful of being able to just fix that and then be able to create the schemes, and then go back to using flutter via Android Studio.
I asked How do you use Flutter Flavors in Xcode but this question seems to be the first step in answering all those questions.
After several attempts at downloading 5.3.1 version of Unity3D, and not being able to do it successfully, ended up downloading 5.3.0 version from the torrents link pointed to by the unity3d download page.
Now have the environment setup to 5.3.0 of Unity 3D and XCode 7.2
Downloaded the cardboard unitypackage as specified in the link #https://developers.google.com/cardboard/unity/get-started-ios
When I imported the package, I got a bunch of errors but was able to fix them by moving the required files into the MonoDevelop IDE.
Now I exported this as an iOS project using build settings, it did create a folder with iOS corresponding code. However seeing the following issues, which I've been trying to fix since 3 days. Tried several alternatives like switching to different versions etc, tampering with Build Settings on XCode but no luck. Can anyone please help me?
My unity project creates error while opens in Xcode.
The error is
clang: error: linker command failed with exit code 1
(use -v to see invocation)
So project not opens in xcode.
Xcode Version : xcode5.0
Unity Version : unity4.0
How can i escape from this issue?
I started getting a similar linking error after I had upgraded to Unity 4.2.2 (I've only ever used XCode 5 with Unity for iOS).
To fix it - I just wiped out my whole XCode project directory and re-did the build from Unity. Everything started working for me again.
So I suggest you just try wiping out your XCode directory and re-creating it from Unity.
If you've got custom code in your XCode project - maybe try generating a new XCode project in a different place just to see if it works.
Unity does not support Xcode 5 (last tested with Unity 4.2.1). I am guessing you also are encountering the following issue when you try to build and run your unity project:
UnityException: Launching iOS project via Xcode4 failed. Check editor log for details.
In order to resolve your issue, you will need to re-install Xcode 4. I recommend downloading XCode 4.6.3 by searching for it at https://developer.apple.com/downloads/. While it is possible to run multiple versions of Xcode side-by-side (i.e. 5 and 4.6.3), my experience is that Unity will always launch Xcode 5, and I wasn't able to able to find a way to change this behaviour even with renaming the 2 Xcode apps (perhaps someone else knows a way?). In my case, I had no other need for Xcode besides building Unity projects, so I just removed version 5.
I downloaded a sample code from the MAC OSX developer library and the code is the format of a .pbproj (Project builder) and im unable to open it on xcode.
I have tried the following without any luck:-
1) Rename FancyAbout.pbproj to Old.xcodeproj
2) Open Old.xcodeproj. Xcode will ask you to upgrade it. Save it as
FancyAbout.xcodeproj.
3) When the project opens, choose Project > Upgrade All Targets in
Project to Native... to upgrade to the Xcode build system
4) Build and run.
I run a Mac 10.7.3 with Xcode on 4.3.2
Anyone have any suggestions on how i can get this running in xcode?
Thanks in advance!
To the best of my knowledge older Project Builder, and even older Xcode projects can not be opened or upgraded directly. The only real way you could upgrade would be to find a previous version of Xcode that is able to open and upgrade the older project then save the project using the older Xcode and see if the newest Xcode is then able to open the upgraded project.
Or, simply create a new Xcode project and copy over all the source files from the old project into your new project and go from there. This option is probably considerably easier then trying to find older versions of Xcode to do the upgrade with.