I can run my app in the simulator and on my device just fine. However, as soon as I try to archive the app (in order to upload it to iTunes Connect) the process fails.
Could not build Objective-C module 'Alamofire'
I have included Alamofire as a git submodule in my app. I have already submitted various betas to iTunes Connect and never encountered this problem before.
I did not change any build settings though. Any other idea what could be wrong ? The problem seems related to this issue in github but no solution was provided.
Thanks in advance for any help.
Do You use other modules with Alamofire in Your project?
If so the solution is adding a dependencies of Alamofire to other modules to, same as in main project.
Another solution could be Derived data from xCode. Go to your xCode project and clean all Derived data.
Related
I have manually added Kingfisher in my iOS project. Project runs on my iPhone device. But when I try to make a archived build, it give too much errors. I am using MacBook Air Silicon series.
Reproduce
Add Kingfisher manually in a project.
Try to Archive the project
This is where I added Kingfisher
Errors I am receiving.
Please check if there is any inconsistency in your ios Deployment target. If you sub project (here kingfisher) deployment target is higher than your main project it may build for your device but not archieve. As when it is archieving it is building for all devices.
Added Kingfisher again using Swift Package Manager and it started working perfectly.
For a detailed conversation with the maintainer, check the issue below
https://github.com/onevcat/Kingfisher/issues/1727
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
I've just added a new RichNotification Extension to my project.
Now I've got "myApp" target and two targets for: "RichNotification" and "RichNotificationContent"
When I archive the main target for the App Store works fine but I get this error while trying to upload to the App Store:
ERROR ITMS-90700: "Incorrect Platform. You included the iOS arm64
executable
“myAPP.app/PlugIns/myAPPRichNotifications.appex/myAPPRichNotifications”
in your iOS bundle. Only iOS executables can be included."
Is there any special procedure to archive an app with multiple extensions / targets? Special build config?
Couldn't really find any information, I'm probably searching with the wrong terms.
I had the same problem. I just use pod update, rebuild project on another mac, and reupload build to AppStore and issue gone
We had this error when using Transporter to upload the application from a non-developer computer. The solution was installing Xcode on that Mac. After that the upload process went through without issues.
Thanks to #Mikhailo Karpenko
I solved the issue by re-installing pods
And I had to remove the setting 'ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES' from the project settings as this is set by pod iteself
I had a similar issue where uploading an app produced the same ITMS-90700 error but it was related to a watch app executable. In the end it turned out that I had an old watchOS target in the build settings which was causing the error.
Not completely related to this question, but this is the only question I found on SO that referenced error ITMS-90700. Hopefully it helps someone.
I solved this issue by making sure all of the build targets in my project were built for the same iOS Deployment Target.
We added an extension in our app and it defaulted this value to iOS 12 whereas the rest of our app was configured for iOS 10. Regardless of the valid architectures field in the build settings, the extension was only being built with 64-bit support, but the rest was being built with both 32-bit and 64-bit.
After making this change, I ran lipo -archs on the extension to validate that it was built for both arm64 and armv7.
I've an old project to start work on it. Client told that it was completed in 2012, and may be with v.4.3 or some older version of Xcode. It was only targeted for iOS v.6 and previous versions. Now client wants to make some upgrades and make it compatible for all iOS devices having iOS v.7 and/or above.
I'm running Xcode v.6.3 with iOS v.8
When I firstly open up the project and run – I got too many error (actually those should be come as warnings and not errors) from GPUImage framework. I solved it one-by-one. After solved those errors, when I run it again, I failed-up with few more error of SDKs not found. I can confirm that all SDKs are added properly. And its never changed, after the project was created. However its giving me errors.
Is there something that we've to setup when we run an old project (in latest Xcode and current iOS target)? Do we need to change architectures? Header search paths?
Note, all SDKs and app source code was on Github and added as submodules to the app. I have successfully cloned it in my Mac.
Please ask me if you want more information on this.
The following steps could solve your problem. I am not 100% sure but it worked for me once. Worth a shot.
1) Go to Build Phases and remove the FacebookSDK.framework
2) Clean
3) Link back the FacebookSDK.framework to your project
4) Clean and Run
I have been trying to send my application to apple for submission and it is my first experience about it. I have searched the errors and applied all suggested solutions. However none of the solutions didn't work for me. I got the error below.
I set the ios deployment target as ios 7.0 and later versions for both of the project target and Alamofire framework. Also, my Xcode version is 6.1.1 . However, I could not understand that why not working.
Could you help me please ?
Thank you for your answers
Best regards
Unfortunately, iOS 7 does not support frameworks. Here is some additional information about it. The known workaround is to add Alamofire to your project by dragging the Alamofire.swift file directly into your project.
A good way to track this type of usage in your project is to use Git submodules. You could also download a version and copy the file into your project, but then it gets more difficult to track what version you have compiled into your project.
This will build Alamofire into your project as though it was just another Swift file associated with your project.
This is also why most Swift CocoaPods are iOS 8 only.