SecKeyWrapper Error Build on device - ios

I wanna know why I get this bunch of errors when I try to build it on device. Because I can build and run it on simulator.

What are your targets settings? Check that ARC is disabled:
Select Project
Select Targets
From the right panel, select Build Settings
Search for "Automatic Reference Counting"
If you need to enable ARC for some files check this question How to add ARC for specific file?

Related

App Need to Be Updated. The developer of this app needs to update it to work with this version of iOS. iOS15&Xcode12.5.1

Now I face a problem when I archive my app and install to my device.
Environment: Xcode12.5.1 & iOS 15
It will show this alert to me.
But I don't know what my app should be updated.
Does any good idea to me?
Thanks.
Here are the things you can check and update:
First Go to Xcode and select your Project and then select Build Settings
tab.
Select Build Active Architecture Only and set as "No",then
Select Excluded Architectures and type "arm64" only in Any simulator section .
Like this:
Refer this image
Note: Also check the app target and check Build settings there.

Classes not found when archiving SwiftUI app

I have been working on a 100% SwiftUI app and am fairly into the project.
The project compiles and builds without issues when running on both simulator and device.
However if I try to compile the project I get a bunch of errors stating certain classes cannot be found across the project.
2 of these are CoreData auto generated classes.
1 is a global struct called Globals.swift
Has anyone else encountered this issue with Xcode 12.4?
You have probably changed some architecture settings
Try
Click target next to stop button
Select Edit Scheme
Select Run on the left
Select Info (top center)
Change Build Configuration from Debug to Release
Then build your project as you have been on a Device
If you get the same error you know something is going on between DEBUG and RELEASE builds.
Make a new project and compare the "Build Settings" of your current target and the "Build Settings" of you new empty project.
Pay attention to the ones that have DEBUG and RELEASE options such as
Architectures > Build Active Architectures Only
And anything else you might have changed because of a pod or other dependency.

How to submit Xcode "Generic Archive"

I Archived my app, and usually the "archive type" section says, iOS app, and you can submit directly from organiser. However, the type of this app seems to be "Generic Archive" and asks me to export in 1 of 2 ways When i click on distribute - Save built products - export as Xcode archive.
How do i submit?
The short version is you can't. It probably means that your binary has multiple targets inside it. My guess -- as this is what's happened to me -- is that you included an open source project and have it configured incorrectly. Check the "Skip install" setting of any sub-projects.
This is a issue of wrong Schemes for multiple targets, check and create new schemes for every target and then go to Build Settings>target dependencies and remove if any!
Please check below link this apple document:
http://tinyurl.com/nnxjtzq
When you make archive, It will show at xCode Organizer ,
In
xCode Organizer find three tab Click on last tab Archives
Select you app and Click on Distribution
There you will find three check box like this image
For submit appstore check first and follow next steps ..
May be help full for you ...
Okay, the problem turns out to be that my cocos2d libraries were included in the build settings. This was solved by
cocos2dLibraries > Build Settings > Skip Install
and making the value "Yes".

xcode 5 archive build fail, but normal build successfully

I can build and run my app on my device, but when I tried to build archive, I got many errors. The errors are about my 3rd library - google protobuf. It showed that #error Host architecture was not detected as supported by protobuf. But what is the difference between archieve and normal build?? After all, I built successfully and ran my app on the device when I choose product=>run (cmd+R).
When you build to run, Xcode usually builds for the active architecture only. When you archive it builds all the architectures specified by the intersection of the Build Settings "Architectures and Valid Architectures".
So it's likely that Xcode is trying to build for some architecture that isn't supported by your protobuf library, e.g. Arm64.
For me the problem was that the scheme for "Archive" was different than the scheme for "Run". When i switched "Archive" to use DEBUG instead of RELEASE it worked.
You can see reasons for failure in Report Navigator present in Navigator window.
Menu -> View -> Navigator -> Hide/Show Navigator
Extra icon will appear/disappear next to Breakpoint icon after Hide/Show Navigator
Open Report Navigator by pressing last button present on list of buttons in Navigator window.
Here you can view reasons either By Group or By Time.

Xcode can build a project but can't run it on simulator

When I download a project from the web, sometimes it can be built but doesn't run (XCode -> Product -> Run is disabled, in grey). This never happens when I create projects myself. What could be the problem? Is it somehow connected with version?
I'm new to iOS development and download projects from the web for studying purposes. It's a pity not to be able to test them on the simulator.
Generally, if you can't Run a project, either:
It doesn't have a build scheme that knows how to "run". Check at the top next to the Run/Stop buttons that there's a profile name and target device shown. If the box says No Scheme then click on it and create a New Scheme. If there IS a scheme, click on the drop-down menu (left divider in Xcode 4.2+, anywhere on the box otherwise) and go to Edit Scheme to make sure the scheme was set up correctly for Running
It doesn't have a build configuration set. You should see this in the Run section of your build scheme. Check there's one selected. If the list is empty, go to the Project icon at the top of the leftmost pane, select the Project, go into the Info section, and create a build configuration, although there should already be at least one if you can build the project
It doesn't have a runnable target at all, which might mean you've got a project which compiles to a static library or framework for use in OTHER projects. If this is the case, you should see the icon for your build Target as a yellow toolbox (framework), or a little white building (a "library", although to me it looks more like the United States Supreme Court Building).
The target isn't valid for the Simulator, which means you might need to add i386 to the list of Architectures and Valid Architectures on the Target before you can run it
The target isn't valid for the currently connected device. For this one, check the Deployment Target number is set back enough to be valid for the device's version of iOS
Xcode can't see the connected device. Try unplugging and plugging it back in. If it still doesn't recognize it, you may have not added it to Xcode (Window -> Devices -> Select the device -> Use for Development)
Make sure that in your Edit Scheme (click on your project name next to stop button -> Edit Scheme), in the Info tab of the Run menu selection, that your .app is selected as the Executable. I had this issue and "None" was selected, happened after refactoring the project's name and reconfiguring the build targets.
you may download a project that the deployment setting (the ios version) is higher than the one your xcode support. if this is your situation, you has two options to sovle the problem.
try run the project in a older deployment option. follow these instructions (
if the project just setting to a higher version but not using any feature of the higher version. this approach should work):
select project file in xcode > select the target you are going to run > select summary tab > in section 'iOS Application Target' > in the combo box about 'Deployment Target' select the version that your Xcode support.
and then you could select and run the project in the simulator.
if the project dose use features in the higher version, then you should update your Xcode in order to run the project.
Hope this helps!
In my case the issue was really simple, I needed to check "Launch: Automatically" check in "Product > Scheme > Edit scheme > Run" menu.
When this setting wasn't checked I cannot find App icon in simulator to launch application.
In My Case Sole by Go->Project->Architectures->Architecture=select standard architectures(armv7,arm64)...
same as
Go->Target->Architectures->Architecture=select standard architectures(armv7,arm64)...

Resources