So I have been using cocoapods recently, and it works in the simulator. All my libraries link fine. All my files are being referenced fine in the code and I am not getting any errors. However, for some reason "Archive" is grayed out and I can't archive my app. Since I don't have any error codes... I can't provide any code for you guys, but if you need things I can post them. I don't know why at this point this isn't working. Any and all tips would be appreciated!
Have you ever try to switch to real device instead of Simulator? Because archive button only available when you build on real device.
Reference:
Xcode 4 - "Archive" is greyed out?
Related
I am using Agora in my flutter application, everything works fine when I test it with simulators/emulators and my android/ios phones.
When I archive the project on Xcode and upload to App store, it throws one error as below, I have searched online for a couple of hours but didn't get any progress. I don't even have any idea what is the issue and what causes the issue
My understanding is agora_rtc_engine is installed by Flutter, I am not supposed to do anything when archiving an IOS package.
If anyone knows what happened and what needs to be done, please share your thoughts, Thanks!
From xcode change the ios deployment target to 11.0
I also had this problem because I was trying to open and archive runner.xcodeproj using xcode. When I selected runner.xcworkspace I was able to successfully archive.
try "flutter build ios" again
As I am working on the iOS app since past few years, I was able to run it on devices and simulator both which is totally easy. But from few days I am facing a time wasting problem.
Whenever I am trying to build my project in iOS device it gives me "Module Not Found Error" also it includes other error like "Unknown Type Name Dipatch_Queue_t" etc. But the strange thing is it is working fine in simulator, it builds and run on simulator as it should but not in device. The error usually comes in PODS target.
AND THIS HAPPENS WITH ALL THE APPS I AM TRYING TO BUILD IN XCODE.
Working Environment - xcode 10.2.
Kindly suggest me what is wrong here, which I am not able to understand.
sometimes we stuck in some weird issues which we can't debug, so this issue is one of the case where I got to know some how the framework file of whole Xcode is corrupted but you can-not debug the Xcode framework, In my case even the framework file is not opening to check whether I wrote anything mistakenly, So solution was I delete the Xcode and reinstall the same version. If you want, you can download the upgraded version of Xcode as well. So all framework files are new and it is working fine now.
The following error occurred when I tried to run a project on my iOS device. Running it on a simulator works fine.
The other weird thing is that I am able to run my other projects on my device, only this particular project that is giving me this error.
I tried all the solutions I'm able to find:
Cleaning the project, deleting derived data
Restarting Xcode, my Mac, and my iOS device
Deselect 'Automatically manage signing' in the testing Target.
I couldn't delete the app from my device and re-install it because it wasn't installed on my device before.
Any help would mean alot to me! I am using Xcode 8.1 with Swift 3.0, running on a iOS 10.1.1 device.
Close your Xcode completely from currently running on Dock
Unplug your iDevices cable at your Mac and plug again.
Open Xcode Again.
Clean,Build and Wait for indexing the device
Delete the previous app you install on your iDevice
Then install
If you have free Developer ID, make sure you got the Internet access
right on your iDevices.
Else,
Check your provision profile or certificates of your app that it's still available or not [Expire or not].
If expired, please create again.
Install those latest provision profile at your Xcode Preferences/Account/Detail/
Make sure Signing "Debug" and "Release" aren't empty
Close the Xcode(Completely quit from Dock) after you completed those steps
Open the Xcode again and do Clean,Build and Install
Hope this help.
Other alternative way,
Remove the app on the device and re-install
Change build version no and install again
Clean your the project and reattach your device
Do a pod update if you are using CocoaPods. This error can occur due to one of the pod libraries, device logs can be checked for the name of the library.
I get this error only on the second compile for device targets, and I've found that if I just modify one critical source code file by adding just an empty line, the error goes away and Xcode will compile again. The other way is to target a second device which isn't always convenient.
A way around this confusion is to add a an Xcode Run Script that basically does this for you.
Force Xcode 9 to recompile after a build seems to be file dependent also
touch ${SRCROOT}/MyProject/MySourceFile.swift exit $?
With the above script my issues went away, and I never saw the Xcode Alert again. This bug has been in several iterations of Xcode now.
I have the same problem too, and also tried all the solution like you. unfortunately, not solve this problem, but I copied my project to another path, the copied one can build on my phone successfully, hope this can help you.
It can happen if you have debugged the same app(bundle identifier) with more than one Apple Ids. Remove all accounts from Xcode and sign in to the one which you're currently working with.
Restart your Xcode & Uninstall your app.
Build & Clean your Project, now it working good.
this works for me
above is not working please Restart your system
This error message occurred when I was building on an iPhone 5 and an iPhone 6 Plus with Xcode 10. Build in iPhone 5s Simulator gave a different error: "App could not be installed at this timeā¦/Notification Extension: No such file or directory"
Problem was resolved by check marking Target Membership in my Notification Extension's source file.
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)
How do you correctly use Application Data bundles in Xcode 6? I exported a .xcappdata file from a device, added it to my workspace, and selected it in the Run Options of a scheme.
Whenever I try to run the simulator with iOS 8.0, I get the following error, even on repeated launches, manual launches, etc:
Application data package not copied to the Simulator
It appears you are running 'REDACTED.app' on the iPad Air Simulator for
the first time, and therefore do not yet have a data folder created.
The application data package will be installed the next time you run
your app in the Simulator.
Trying to use the simulator with iOS 7.1 crashes Xcode.
Does this feature just not work anymore with the changes made to the filesystem?
Tried again on Xcode Version 6.1.1 (6A2008a) and it (sometimes) crashes Xcode now, hopefully that means it will be get fixed soon...
I'm using Xcode 8.1 and when I tried to add the .xcappdata file Xcode crashed.
I solved it by cleaning the app and then I tried to add it in another target and it worked. Afterwards I tried to put it again in the target I wanted it in and it worked as well.
Unfortunately I'm not sure about which of these steps fixed it but I hope it to be useful to someone!
You can try to clean the Derived Data which contains all the intermediate build information like debug- and release-built targets. And you probably can select the Simulator, choose the iOS Simulator from the menu. Then, choose Reset Content and Setting.
Sometimes, it's just some bugs in the XCode. And I think Apple is handling that when your issue is marked by duplicate by them.