Failed to verify bitcode in TNSWidgets.framework/TNSWidgets - ios

I am working with Nativescript iOS app, when trying to create an Enterprise Archive using XCode. App builds fine but fails with the following error when Enterprise distribution is selected. Please help me to resolve this.
Failed to verify bitcode in TNSWidgets.framework/TNSWidgets:
error: Bundle only contains bitcode-marker /var/folders/5d/kv3n6r795l156_mwk8lzpfv00000gn/T/IDEDistributionOptionThinning.Sgt/Payload/hektor.app/Frameworks/TNSWidgets.framework/TNSWidgets (arm64)
Thanks in advance

I have resolved issue using this command. Go to your project directory and run this command in terminal
tns build ios --release --forDevice
Then you could get your ipa file from this location
../your_project_directory/platforms/ios/build/Release-iphoneos/yourappname.ipa

Related

Unable to build app when connected to physical device

After building my app to a physical device and archiving my build I get an error message and my app won't build to a physical device. I receive the following error message:
XXX.app/Frameworks/GTMSessionFetcher.framework with Identity Apple Development: XXX
XXX.app/Frameworks/GTMSessionFetcher.framework'
XXX.app/Frameworks/GTMSessionFetcher.framework: errSecInternalComponent
Command PhaseScriptExecution failed with a nonzero exit code
I have tried cleaning build folder, downloaded certificates again but to no success.
Does anyone know something that can help?
Please provide further information. Are you using cocoapod or carthage or dependencies ?
If you build the project and get the framework yourself without make it a "fat" framework, It only works on the stimulator or physical device only.

Build failed with error Error code 72 for command: xcrun

I am porting an phone app project into VS2017 and get the below error when I try to build for a Remote Device. This code has built correctly on VS2015 and runs fine in an Android simulator. Just get this error on and IOS remote device, which I need to run to create an .ipa file. I see a bunch of posts on an error 65, but none on error 72 that I can find. Can you help me on how to fix this? Thanks.
"
Severity Code
Description Project
File Line
Suppression State
Error Remote build error from the build server http://10.13.4.29:3000/cordova - Build failed with error Error code 72 for command: xcrun with args: -sdk,iphoneos,PackageApplication,-v,/Users/administrator/.taco_home/remote-builds/taco-remote/builds/8936/cordovaApp/platforms/ios/build/device/OnticMobile.app,-o,/Users/administrator/.taco_home/remote-builds/taco-remote/builds/8936/cordovaApp/platforms/ios/build/device
I fixed this by going back to XCode version 8.2.1
This happens if you use ionic build ios --device … it’s the device flag that needs the packageApplication, but which is not available in 8.3
I got around the problem without downgrading XCode, as follows:
Load your project into XCode 8.3 by clicking your .xcodeproj file (in
platforms/ios/build) and choose Product > Archive.
Select the archive in the next screen and click ‘Export’ button. Choose ‘Save for Ad Hoc
Deployment’ and you’ll get an .IPA file, just as if you had used ionic build ios --device.

How to build and deploy an ios api file in real device using MAC

i am new to mac, so for i have installed xcode and successfully added the platform for ios.
When i give adb devices i am not able to detect my device name for iphone but when i connect android and give adb devices i am getting my device .
when i give ionic build ios i'm getting the following errors. i don't know how to enable the developer option in iphone
=== BUILD TARGET myFirst OF PROJECT myFirst WITH CONFIGURATION Debug ===
Check dependencies
Signing for "myFirst" requires a development team. Select a development team in the project editor.
Code signing is required for product type 'Application' in SDK 'iOS 10.3'
** ARCHIVE FAILED **
The following build commands failed:
Check dependencies
(1 failure)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/subbarao/Desktop/myFirst/platforms/ios/cordova/build-debug.xcconfig,-workspace,myFirst.xcworkspace,-scheme,myFirst,-configuration,Debug,-destination,generic/platform=iOS,-archivePath,myFirst.xcarchive,archive,CONFIGURATION_BUILD_DIR=/Users/subbarao/Desktop/myFirst/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/subbarao/Desktop/myFirst/platforms/ios/build/sharedpch
You need a development provisioning profile on your build machine. Apps can run on the simulator without a profile, but they are required to run on an actual device.
If you open the project in Xcode, it may automatically set up provisioning for you. Otherwise you will have to create go to the iOS Dev Center and create a profile.
cordova run with ios error .. Error code 65 for command: xcodebuild with args:
Same question here by this guy
Try to sign in as ios dev account in Xcode
or try
ionic platform remove ios
ionic platform add ios
i was getting the same error but i tried the above command and its working now
thanks

Cordova iOS - Build App Error 65

I developed an App on a Windows Machine (For Android).
I also want the App for iOS. So I installed Xcode, node.js and cordova.
There are no errors, when I run my App on a Emulator.
When I run the App on Device with the command cordova run ios --device, I get the following Errors:
Check dependencies
Signing for "HelloCordova" requires a development team. Select a development team in the project editor.
Code signing is required for product type 'Application' in SDK 'iOS 10.2'
** ARCHIVE FAILED **
The following build commands failed:
Check dependencies
(1 failure)
Error: Error code 65 for command: xcodebuild with args: -
xcconfig,/Users/milkogrieger/Woow2/platforms/ios/cordova/build-
debug.xcconfig,- workspace,HelloCordova.xcworkspace,-scheme,HelloCordova,-
configuration,Debug,-
destination,generic/platform=iOS,-
archivePath,HelloCordova.xcarchive,archive,CONFIGURATION_BUILD_DIR=/Users/milkogri
eger/Woow2/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/milkogrieger/Woow2/platforms/ios/build/sharedpch
I found the following Solutions and tried them:
remove all plugins
add plugins
remove platforms
add platforms
But the error is still there.
I hope someone can help me
Thanks
You need to specify your development team as the message indicates. You can do this easily by configuring build.json, as described in the docs and further clarified here.

Jenkins generated ipa couldnt install on iPhone (iOS 9 + XCode 7.1)

I am trying to implement Jenkins CI to generate build for iOS. I have latest Xcode 7.1 installed and ipa is getting generated without error. While trying to install the ipa through download link I am getting an error saying "Cannot install this time". Also I tried to install the same through iTunes, but getting an error saying "1 item could not be synced" and iTunes showing an error saying "The app "xxxxx" was not installed on the iPhone "xxxxxx" because an unknown error occurred (0xE8000005)".
Code signing certificate & provisioning profiles are proper and I am able to install the ipa generated from XCode.
Any help would be appreciated. Thanks :)
I was facing the same issue. Using Jenkins 2.5 and Xcode 7.3.1. Jenkins successfully build iOS app packaged the ipa, but the ipa did not install on the iPhone neither with iTunes nor when downloaded from TestFairy. Getting the same error "The app "xxxxx" was not installed on the iPhone "xxxxxx" because an unknown error occurred (0xE8000005)".
In the Jenkins logs I noticed following:
22:03:10 ### Checking original app
22:03:10 + /usr/bin/codesign --verify -vvvv /Users/jenkins/.jenkins/workspace/app-ios-build-job/build/MyAppProd.app
22:03:10 Program /usr/bin/codesign returned 1 : [/Users/jenkins/.jenkins/workspace/app-ios-build-job/build/MyAppProd.app: a sealed resource is missing or invalid
22:03:10 file added: /Users/jenkins/.jenkins/workspace/app-ios-build-job/build/MyAppProd.app/MyAppProd.app
22:03:10 ]
22:03:10 Codesign check fails : /Users/jenkins/.jenkins/workspace/app-ios-build-job/build/MyAppProd.app: a sealed resource is missing or invalid
22:03:10 file added: /Users/jenkins/.jenkins/workspace/app-ios-build-job/build/MyAppProd.app/MyAppProd.app
22:03:10
22:03:10 Done checking the original app
On further search found the answer posted by bladebunny at https://github.com/Carthage/Carthage/issues/782
Issue turned out to be duplicate package commands on Jenkins that resulted in the app being signed twice -- and then causing install to fail. Solution was to change Jenkins Xcode plugin settings. Under the 'General Build Settings' - we found you can't check both "Generate Archive" and "Pack application and build .ipa?" settings. The plugin issues log seems to suggest the former setting is being deprecated. We use the latter setting and are now able to successfully deploy the app with our custom dynamic framework.
The above fix worked for me.

Resources