Flutter project stopped working randomly after a couple months - xcode

I have written over 9,000 lines of code in my Flutter Application, and all of the sudden a couple months later (I tested it months before and it was fine) it stopped with this message:
error: /Users/asheralbrecht/Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.12+4/ios/Classes/FLTSharedPreferencesPlugin.h: No such file or directory (in target 'shared_preferences' from project 'Pods')
So I ran flutter clean and flutter build ios and then Xcode said:
Uncategorized:
Command PhaseScriptExecution failed with a nonzero exit code
With about 30 errors.
I don't know what is going on, but I am stressing that I am going to loose all my hard work and effort on this app.
Do any of you know how to fix these errors?
Is there any more info I need to give or explain?
PS: I am also using Cocoa Pods for my Firebase Database.
Some sources I used:
Shared Preferences error in Flutter - iOS on Mac
Thanks in advance!

Related

How do I run a previously updated React Native project in Xcode 12.3?

I am new to coding. I recently had a coder update a React Native appI got it to run on Android with an emulator but there are multiple issues when getting the app to run on IOS. I am assuming the main issue is that I need to clean the react native app for IOS, and I have trouble finding information how to do this...WHat I tried was going to the iOS in the terminal and typing "xcodebuild clean" but errors still pursue....I tried opening up xxx. xcodeproj and I got an error that said "yogakit/yogakit.modulemap' not found". Then I tried opening up xxx.xcworkspace and it got an error saying that I need to update to Swift 5 but the update fails. I ve tried to research this issue everywhere but could not find a solution. What is it that I am doing wrong here? How do you take an updated code from Native React and get it to successfully run in Xcode?

XCode error running react-native project 'JavaScriptCore/JavaScriptCore.h' file not found

I am trying to run a react-native project in Xcode (version 4.6.0). I have done the following:
react-native init helloWorld then open the 'helloWorld.xcodeproj file in
Xcode Run using simulator (e.g. iphone 7) in XCode
I keep getting build failure, with this ....Desktop/helloWorld/node_modules/react-native/React/Base/RCTJavaScriptExecutor.h:10:9: 'JavaScriptCore/JavaScriptCore.h' file not found
I have tried to see how to add the library but cannot find out how.
Could anyone please point me in the right direction, any comments would be much appreciated
most probably JavaScriptCore framework is missing, try to add it (Adding Framework in Xcode 4)
Your XCode is too low, consider updating it. And BTW - React Native doesn't support iOS 6 (https://github.com/facebook/react-native/issues/330) so be sure that you are using iOS 7 or 8

Archive failed - no reason - Xcode 6 with Screen shot of archictures

Im trying to archive my iOS application but it fails during archiving, there is no hint to what it may be. Any way to find out?
Ive provided an image of the build settings incase the issue lies here:
Update
App builds perfectly on a device. (iPhone 5s and 6)
I managed to fix the issue. I originally thought it was an issue with the architecture, so I removed arm64 from valid architectures. This then allowed me to archive the app.
However I decided to do one last build on a device before submitting it to the app store and I noticed it would not build (would not build on an iPhone 5s running iOS8.3).
This flagged an error when trying to build, I had:
#ifndef DEBUG
SEC_IS_BEING_DEBUGGED_RETURN_NIL();
#endif
in my code, which i felt was needed in order to deter debugging by an unauthorised individual. I removed this line, added back 'arm64' into 'Valid architectures' and it archived without any issue (it also ran on the device again). So for some reason, 'arm64' allowed the above code when running on a device I believe, but would not archive.
Hope this saves someone too :)

Xcode Target dependencies error after switching SDKs

I have been working on my project with xcode 5 for the past few days. I've switched over to Xcode 4 because I wanted to make sure everything in my project would be compatible with IOS 6.
After reverting the XIBs, I get the following error when I attempt to run my project.
Every other time I run, my app crashes, but every other time it does not... Weird.
target specifies product type 'com.apple.product-type.bundle.unit-test', but there's no such product type for the 'iphonesimulator' platform
How can I go about solving this issue?
Thank you for your time.
I am using Xcode4.6 run my app show the Error!
but!
I click xode product ---> clean !
solve the error!

XCode 3 - core compile errors with clean installation and iPhone 4 SDK

This is a copy of another question from AskDifferent, since I'm being adviced to put this question here instead.
This has been asked once elsewhere but nobody could give the guy an answer... and I Google seem to only know that single occurrence of the problem!
So I'm the second guy in history to experience this and my problem is:
I'm running XCode 3.2.3 on Snow Leopard 10.6.4 (I think, it's the minimal required OS version for this XCode version) with iOS SDK 4.0.2
I create a new empty Cordoba (PhoneGap) project
I set up my Base SDK in Project Settings to iPhone Simulator 4.0 per instructions on PhoneGap's website
I don't change any other setting at all
when I hit "Build and Run" button, XCode starts compilation and finished with 3 errors and 10 warnings
Now, I don't mind those warning, but I cannot successfully compile because of those 3 errors now. No idea how to fix this, I'm totally new to PhoneGap or Mac OS for that matter.
The errors I get are:
/Users/[name]/Documents/CordovaLib/Classes/CDVLocation.m:123:32 /Users/[name]/Documents/CordovaLib/Classes/CDVLocation.m:123:32: error: use of undeclared identifier 'kCLAuthorizationStatusAuthorized'
/Users/[name]/Documents/CordovaLib/Classes/CDVCapture.m:783:70 /Users/[name]/Documents/CordovaLib/Classes/CDVCapture.m:783:70: error: use of undeclared identifier 'NSEC_PER_MSEC'
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang failed with exit code 1
I would appreciate any advice from you guys, as I'm completely at a dead-end here.
CLAuthorizationStatus, and thus kCLAuthorizationStatusAuthorized are only available in 4.2 and later.
Check this for more info: https://developer.apple.com/library/ios/#documentation/CoreLocation/Reference/CLLocationManager_Class/CLLocationManager/CLLocationManager.html#//apple_ref/c/econst/kCLAuthorizationStatusAuthorized
As to your other error, google pulls up this: How to resolve Phonegap error while Building the app

Resources