Code Monkey home page Code Monkey logo

motion-fabric's People

Contributors

digitalmoksha avatar markvillacampa avatar watson1978 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

motion-fabric's Issues

fabric:upload is setting get-task-allow to true in entitlements.plist; prevents installs

Hi,

I've integrated motion-fabric, set up an account, and am successfully using it with Crashlytics.
I've just started using it for beta distribution and I am running into a problem installing the beta builds on any of my test devices.

After a lot of research, I found that the entitlements.plist is being generated with

        <key>get-task-allow</key>
        <true/>

This is what rubymotion does for development builds, and motion-fabric seems to be using a development build.

However the ad-hoc distribution provisioning profile does not allow this, resulting in the following error on the device log while installing:

Mar 27 13:38:40 Light installd[684] <Notice>: 0x16e1bb000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=us.leapforward.awareness; Version=1.0.74, ShortVersion=1.0>
Mar 27 13:38:40 Light securityd[96] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Mar 27 13:38:40 Light securityd[96] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Mar 27 13:38:40 Light installd[684] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Mar 27 13:38:41 Light securityd[96] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Mar 27 13:38:41 Light securityd[96] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Mar 27 13:38:41 Light installd[684] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Mar 27 13:38:41 Light profiled[605] <Notice>: (Note ) MC: Provisioning profiles changed
Mar 27 13:38:41 Light profiled[605] <Notice>: (Note ) MC: Updating MIS trust...


Mar 27 13:38:41 Light installd[684] <Notice>: MIS: entitlement 'get-task-allow' has value not permitted by provisioning profile 'Global Awareness Beta Distribution'


Mar 27 13:38:41 Light installd[684] <Notice>: MIS: entitlement 'get-task-allow' has value not permitted by provisioning profile 'Global AWARENESS Beta Distribution'
Mar 27 13:38:41 Light installd[684] <Error>: 0x16e1bb000 +[MICodeSigningVerifier _validateSignatureAndCopyInfoForURL:withOptions:error:]: 142: Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.NdVDAr/extracted/Payload/Global AWARENESS.app : 0xe8008016 (The executable was signed with invalid entitlements.)

I suspect there is a simple solution here somewhere -- perhaps I can tell motion-fabric to use a release build? I don't see anything in the doc that would specify this.

Any help would be much appreciated!

motion-game config

typing rake fabric:setup im getting ERROR! Fabric's api_key cannot be empty

on my ios.rb I have:

app.fabric do |config|
config.api_key = “….."
config.build_secret = “…….."
config.kit 'Crashlytics'
end

tvOS support

After following the install instructions, I receive a NameError when the app gets to this line:

Fabric.with([Crashlytics])

*** Terminating app due to uncaught exception 'NameError', reason: 'app_delegate.rb:13:in `application:didFinishLaunchingWithOptions:': uninitialized constant AppDelegate::Fabric (NameError)

I believe this is because the bridgesupport file isn't being generated / can't be found, I also receive this warning:

WARNING! Could not find .bridgesupport file for framework "Fabric".

Looking at the code, it's looking only for the iOS version:

https://github.com/HipByte/motion-fabric/blob/master/lib/motion-fabric.rb#L102

However, adding a similar line to my rakefile manually doesn't seem to help:

app.framework_search_paths << './vendor/Pods/Fabric/tvOS'

That path /vendor/Pods/Fabric/tvOS does exist and contains Fabric.framework.

I'm seeing the same exact issue with the Crittercism gem, it can't find the bridgesupport file and crashes with a NameError when I try to use Crittercism in the app delegate. I think either I'm missing something obvious or it's a rubymotion / motion-cocoapods issue. At any rate, the hard coded path for iOS should be updated here.

Missing dSYMs in fabric.io dashboard

I've created a new rubymotion app here: https://github.com/ashramsey/motion-fabric-test

I have the app registered in my Fabric.io account.

I've set the Crashlytics.sharedInstance.crash in the app_delegate class to occur on launch and ran the app on my device. The device freezes. I hit ctr-c.

I comment the above line and built and ran the app again, the console logs

Ashs-MacBook-Pro:fabric ash$ rake device
     Build ./build/iPhoneOS-10.2-Development
    Create ./build/iPhoneOS-10.2-Development/fabric-test-app.app/Info.plist
    Create ./build/iPhoneOS-10.2-Development/fabric-test-app.app/embedded.mobileprovision
    Fabric Uploading .dSYM file
2017-02-04 13:47:23.787 uploadDSYM[27574:2053079] Fabric.framework/run 1.6.2 (205)
2017-02-04 13:47:23.792 uploadDSYM[27574:2053079] Launched uploader in validation mode
    Create ./build/iPhoneOS-10.2-Development/fabric-test-app.ipa
    Deploy ./build/iPhoneOS-10.2-Development/fabric-test-app.ipa
Feb  4 13:47:29 Ashleys-iPad fabric-test-app[4793] <Notice>: [Fabric] Unable to locate application icon
Feb  4 13:47:29 Ashleys-iPad fabric-test-app[4793] <Notice>: [Crashlytics] Version 3.8.3 (120)

I go to Fabric.io and there is nothing logged.

I repeated the above with simulator. Same output. But I go to Fabric.io and it says

Found 1 unsymbolicated crash from missing dSYMs in 1 version in the last 24 hours. Click to view details

I tried to find the missing dSYMs using

mdfind "com_apple_xcode_dsym_uuids == <UUID>"

but nothing was returned.

Is there something I'm not doing right, or is the latest fabric/crashlytics versions not working?

Every error is `rb_vm_raise ` Is this normal?

Hi guys

I've installed motion-fabric to use crashlytics.

It seems to be catching the errors OK, but they are all listed as rb_vm_raise errors, under the same issue.

Is this the expected behaviour, or am I doing something dumb?

Can't login with Twitter

I get the same crash that I spoke of earlier:

2016-05-25 20:58:26.662 Slang[23503:278591] "twitter 1"
2016-05-25 20:58:26.663 Slang[23503:278591] #<Twitter:0x11dd58a80>
Process 23503 resuming
Process 23503 stopped
* thread #1: tid = 0x4403f, 0x00000001032c6c42 libobjc.A.dylib`lookUpImpOrForward + 45, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=2, address=0x7fff5f3ffff8)
    frame #0: 0x00000001032c6c42 libobjc.A.dylib`lookUpImpOrForward + 45
libobjc.A.dylib`lookUpImpOrForward:
->  0x1032c6c42 <+45>: callq  0x1032d5780               ; cache_getImp
    0x1032c6c47 <+50>: movq   %rax, %r13
    0x1032c6c4a <+53>: testq  %r13, %r13
    0x1032c6c4d <+56>: jne    0x1032c6dc9               ; <+436>

(lldb)

Code in my Rakefile:

app.fabric do |config|
  config.api_key = "key"
  config.build_secret = "secret"
  config.kit 'Crashlytics'
  config.kit 'Twitter' do |info|
    info[:consumerKey] = 'key'
    info[:consumerSecret] = 'secret'
  end
end
app.framework_search_paths << './vendor/Pods/Fabric/iOS'

app.pods do
  pod 'TwitterKit'
end

App delegate (Do I need the "Twitter.sharedInstance.startWithConsumerKey" as well?):

    Fabric.with([Twitter])

Code to login (where it crashes):

    Twitter.sharedInstance.logInWithCompletion(proc { |session, error|
      mp "twitter 2"
      if session
        mp "1"
      else
        mp "2"
      end
    })

Any guesses on what might be happening?

CLS_LOG does not work on device builds

I just started using CLS_LOG for logging errors per this instruction and while it works find in the Simulator (passes through to NSLog) it generates a crash when testing a Crashlytics beta build.

Apparently CLS_LOG is not bound in device builds when configured by the motion-fabric gem.

undefined method 'CLS_LOG' for #<AppDelegate:0x1742ac5a0 ...> (NoMethodError) from app_delegate.rb:95:in application:openURL:options:'`

Would appreciate any thoughts/help!

David

Need more explanation of what each rake task is for

I was able to follow the configuration steps to get Fabric/Crashlytics installed. Now I'm trying to get a better understanding of the rake tasks and how they work so that I can integrate it into my build process. Currently, I use another crash reporting service, and I upload the dDSYM every time I build the app (even in development when using the simulator). There are several rake tasks mentioned in the readme: fabric:setup, fabric:dsym:device, fabric:upload. It's not clear to me which of these tasks I would need to use in order to upload my simulator dSYM. Some additional documentation (or clarification) would be helpful.

Unable to symbolicate development builds

I'm not able to symbolicate simulator nor device builds. I've tried all sorts of different things, including this that is documented in the README:

# Upload the dSYM after every simulator build
Rake::Task["build:simulator"].enhance do
  Rake::Task["fabric:dsym:simulator"].invoke
end

# Upload the dSYM after every device build
Rake::Task["build:device"].enhance do
  Rake::Task["fabric:dsym:device"].invoke
end

It appears as if it works, but when crashes are uploaded to Fabric, they are missing the dSYMs.

Fabric Uploading .dSYM file

env BUILT_PRODUCTS_DIR='/Users/andrew/MyCompany/my_app/build/iPhoneSimulator-9.0-Development/My App.app' INFOPLIST_PATH='Info.plist' DWARF_DSYM_FILE_NAME='My App.app.dSYM' DWARF_DSYM_FOLDER_PATH='/Users/andrew/MyCompany/my_app/build/iPhoneSimulator-9.0-Development' PROJECT_DIR='/Users/andrew/MyCompany/my_app' SRCROOT='/Users/andrew/MyCompany/my_app' PLATFORM_NAME='iphonesimulator' PROJECT_FILE_PATH='' CONFIGURATION='release' sh /Users/andrew/MyCompany/my_app/vendor/Pods/Fabric/run fabricapikeygoeshere fabricbuildsecretgoeshere

2018-09-21 15:37:08.691 uploadDSYM[7956:205910] Fabric.framework/run 1.7.0 (208)
2018-09-21 15:37:08.698 uploadDSYM[7956:205910] Using API Key: "fabricapikeygoeshere"
2018-09-21 15:37:08.699 uploadDSYM[7956:205910] Launched uploader in validation mode
  Simulate /Users/andrew/MyCompany/my_app/build/iPhoneSimulator-9.0-Development/My App.app

2018-09-21 15:37:20.480 My App[7978:206420] [Crashlytics] Version 3.10.1 (129)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.