IB Designables Failed to render and update auto layout status : dlopen(Cosmos.framework, 1): no suitable image found - xcode8

I had successfully integrated 3rd party Library in Swift 3, Xcode Version 8.3.3,
CocoaPods: pod 'Cosmos', git: 'https://github.com/marketplacer/Cosmos.git', tag: '8.0.2'.
However, today it stopped working as expected. I get 3 errors in the issue navigator pane.
itemfile:///Users/bogdanbarbulescu/Desktop/Brev/Brev/Base.lproj/Main.storyboard:
error: IB Designables: Failed to update auto layout status:
dlopen(Cosmos.framework, 1): no suitable image found. Did find:
Cosmos.framework: required code signature missing for
'Cosmos.framework'
file:///Users/bogdanbarbulescu/Desktop/Brev/Brev/Base.lproj/Main.storyboard:
error: IB Designables: Failed to render and update auto layout status
for ManageFeedbackTableViewController (dmz-jg-rVK):
dlopen(Cosmos.framework, 1): no suitable image found. Did find:
Cosmos.framework: required code signature missing for
'Cosmos.framework'
file:///Users/bogdanbarbulescu/Desktop/Brev/Brev/Base.lproj/Main.storyboard:
error: IB Designables: Failed to render and update auto layout status
for DetailViewController (vPa-2A-MKV): dlopen(Cosmos.framework, 1): no
suitable image found. Did find: Cosmos.framework: required code
signature missing for 'Cosmos.framework'

Just add this code at the bottom of your pod file and re-install the pods. Should work.
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings.delete('CODE_SIGNING_ALLOWED')
config.build_settings.delete('CODE_SIGNING_REQUIRED')
end
end

Related

Adding sub module to project causing gradle build failures in Android studio 3.0 with gradle version 4.1

I added sub module library vertical-stepper-form version 0.9.8, while I set dependency of this library on my app module. I was able to do it successfully.
I am using Android Studio 3.0 with gradle version 4.1, few of the classes in project are in kotlin and others in java
When I started gradle sync it gave me this error. The gradle is not building and showing below issues :
/*********************************/
Information:Gradle tasks [:vertical-stepper-form:generateDebugSources,
:vertical-stepper-form:generateDebugAndroidTestSources,
:vertical-stepper-form:mockableAndroidJar,
:app:generateInstallDebugSources,
:app:generateInstallDebugAndroidTestSources, :app:mockableAndroidJar]
D:\Devavrata\project/package/src/main/res/abc.xml Error:error:
attribute 'com.spireon.install:src' not found.
D:\Devavrata\AbcProject\abc-Android\app\build\intermediates\incremental\mergeInstallDebugResources\stripped.dir\layout\activity_main.xml
Error:attribute 'com.spireon.install:src' not found. Error:failed
linking file resources. Error:java.util.concurrent.ExecutionException:
java.util.concurrent.ExecutionException:
com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for
details Error:java.util.concurrent.ExecutionException:
com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for
details Error:com.android.tools.aapt2.Aapt2Exception: AAPT2 error:
check logs for details Error:Execution failed for task
':app:processInstallDebugResources'.
Failed to execute aapt Information:BUILD FAILED in 24s Information:7 errors Information:0 warnings Information:See complete output in
console
/********************************/
What I have already tried :
I tried with changing import lines in xml also changing the android:src and srcCompat properties. Along with build/project cleaning and invalidating the cache.
Changing this line in gradle.properties
android.enableAapt2=false
Let me know if anyone has faced this issue

cocoapods spec lint error when i uploaded an framework to it

A couple of weeks ago, I uploaded an framework to cocoapods。And now i want to update the framework ,but have some problems :
StreamKit (1.1.6)
- ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code. You can use --verbose for more information.
- NOTE | xcodebuild: Headers/Public/StreamKit/StreamKit.h:14:9: fatal error: 'NSObject+StreamKit.h' file not found.
here is the spec enter image description here
so ,please help me ,thanks

Failed to update auto layout status / Failed to render instance

I try to run friend old app that written in objective c .
my friend develop this in Xcode 5 ,I try to run this app in 7.3.1 .
I get this error:
file:///Users/myname/Desktop/myapp%20test%201/after%20coca%20update/myapp/Base.lproj/Main.storyboard: error: IB Designables: Failed to update auto layout status: The agent raised a "NSInternalInconsistencyException" exception: Could not load NIB in bundle: 'NSBundle (loaded)' with name 'myappStepper'
file:///Users/myname/Desktop/myapp%20test%201/after%20coca%20update/myapp/Base.lproj/Main.storyboard: error: IB Designables: Failed to render instance of myappStepper: The agent threw an exception.
I solved this with change in myappStepper.xib "Open in" from Xcode 5.0 to Xcode 6.0.
Like the storyboard.xib.

Can't use SpeechKit Titanium module from iOS in my app

I want want to use Speechkit SDK in my app, since I found it recognize words better than the native tool did.
I found a Titanium module on GitHub but it is designed to work with Titanium SDK 3.1.3.GA . I am currently working with SDK 5.0.0.GA.
What am I supposed to do to import this module in my mobile app ? I updated the titanium.xcconfig file to reflect the version of my SDK. I also put my credentials into it and build the project. Then I compressed it and installed it via Help Menu > Install Mobile Module. I finally added it to the tiapp.xml file.
When I try to run the project, this is what I get :
[ERROR] : ** BUILD FAILED **
[ERROR] : The following build commands failed:
[ERROR] : Ld Build/Intermediates/Hello5.build/Debug-iphoneos/Hello5.build/Objects-normal/arm64/Hello5 normal arm64
[ERROR] : Ld Build/Intermediates/Hello5.build/Debug-iphoneos/Hello5.build/Objects-normal/armv7/Hello5 normal armv7
[ERROR] : (2 failures)
TRACE | titanium exited with exit code 1
ERROR | Error: ti run exited with error code 1
at ChildProcess.<anonymous> (/Users/feeder/.appcelerator/install/5.0.1/package/node_modules/appc-cli-titanium/plugins/run.js:89:66)
at ChildProcess.emit (events.js:117:20)
at Process.ChildProcess._handle.onexit (child_process.js:820:12)
I tried to create a new module by hand and drag-and-drop files into it, and also tried to install globally vs project-specific, I can't come with an idea for making it work. Thank you in advance if you could share an idea ;)
I have the same error and looking the console using Trace appears "framework SpeechKit not found".
I've successfully resolved this error by packaging the module to your project directly selecting "Mobile App Project" given that Module.xcconfig sets "FRAMEWORK_SEARCH_PATHS" to find SpeechKit framework on "assets" folder from the project directly.

Build Failed Error in Titanium iOS project

I am using Titanium 3.1.3 GA version.
While include mobile app tracking module in project, getting "Build Failed" Error message.
Tried with new project also getting the same error.
[ERROR] : ** BUILD FAILED **
[ERROR] : The following build commands failed:
[ERROR] : Ld build/Debug-iphonesimulator/MoibleAppTrackingSample.app/MoibleAppTrackingSample normal i386
[ERROR] : (1 failure)
Please let me know about the issue and how could i fix this.
i386 means you were running on IOS, if yes then please paste the whole log here, so that we can figure it out actually. Because there may be many issue like sdk problem and all. i386 architecture is used for simulators.
Go in finder where this project is and then click BUILD/iphone/ then click on Xcode project. And from there try to build.
Are there any more details about in the log?
What module did you use? did you download it from the MarketPlace?
Try doing a Clean Project and try again.