Build success but run crash while others run successfully after check ios code from svn alongside cocoapods





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I joined a new company last day, they use svn to store code, they even store cocoapods repos in the svn alongside the source code.



They can build and run the code successfully without any modification and without pod install



But after I check it out, I can build it successfully , but crashed when run.



The first place crashes is :



DDFileLogger *fileLogger = [[DDFileLogger alloc] init]; // File Logger 
fileLogger.rollingFrequency = 60 * 60 * 24; // 24 hour rolling
fileLogger.maximumFileSize = 0;
fileLogger.logFileManager.maximumNumberOfLogFiles = 1;
fileLogger.logFileManager.logFilesDiskQuota = 0;
[DDLog addLogger:fileLogger];
_fileLogger = fileLogger;
NSLog(@"%s %@",__func__,fileLogger.logFileManager);
NSLog(@"%s %@",__func__,[fileLogger.logFileManager logsDirectory]);


after comment these lines, other places crash. it seems like it will crash at the place where 3rd-party library uses.



Can anybody help? many thanks to you!



I attach the crash logs here:



https://www.dropbox.com/s/9iqpgph6gqbnpbt/BleLocker%20%202018-11-22%20%E4%B8%8B%E5%8D%885-07.crash?dl=0










share|improve this question

























  • Can you show your crash logs too?

    – Natarajan
    Nov 22 '18 at 9:52











  • Did you do a clean & full build? Didn't they put some built code on SVN?

    – beeci
    Nov 22 '18 at 9:52











  • Yes, I did a full clean and build

    – Alex Chan
    Nov 22 '18 at 10:51











  • Put a break on all exceptions, so you can trace the code back into BleLocker. Also, check that the issue appears only with this version of iOS?

    – beeci
    Nov 22 '18 at 11:30











  • It seems only related to Mac. with other's Mac and my iphone, it works fine. the same code

    – Alex Chan
    Nov 22 '18 at 11:51


















0















I joined a new company last day, they use svn to store code, they even store cocoapods repos in the svn alongside the source code.



They can build and run the code successfully without any modification and without pod install



But after I check it out, I can build it successfully , but crashed when run.



The first place crashes is :



DDFileLogger *fileLogger = [[DDFileLogger alloc] init]; // File Logger 
fileLogger.rollingFrequency = 60 * 60 * 24; // 24 hour rolling
fileLogger.maximumFileSize = 0;
fileLogger.logFileManager.maximumNumberOfLogFiles = 1;
fileLogger.logFileManager.logFilesDiskQuota = 0;
[DDLog addLogger:fileLogger];
_fileLogger = fileLogger;
NSLog(@"%s %@",__func__,fileLogger.logFileManager);
NSLog(@"%s %@",__func__,[fileLogger.logFileManager logsDirectory]);


after comment these lines, other places crash. it seems like it will crash at the place where 3rd-party library uses.



Can anybody help? many thanks to you!



I attach the crash logs here:



https://www.dropbox.com/s/9iqpgph6gqbnpbt/BleLocker%20%202018-11-22%20%E4%B8%8B%E5%8D%885-07.crash?dl=0










share|improve this question

























  • Can you show your crash logs too?

    – Natarajan
    Nov 22 '18 at 9:52











  • Did you do a clean & full build? Didn't they put some built code on SVN?

    – beeci
    Nov 22 '18 at 9:52











  • Yes, I did a full clean and build

    – Alex Chan
    Nov 22 '18 at 10:51











  • Put a break on all exceptions, so you can trace the code back into BleLocker. Also, check that the issue appears only with this version of iOS?

    – beeci
    Nov 22 '18 at 11:30











  • It seems only related to Mac. with other's Mac and my iphone, it works fine. the same code

    – Alex Chan
    Nov 22 '18 at 11:51














0












0








0








I joined a new company last day, they use svn to store code, they even store cocoapods repos in the svn alongside the source code.



They can build and run the code successfully without any modification and without pod install



But after I check it out, I can build it successfully , but crashed when run.



The first place crashes is :



DDFileLogger *fileLogger = [[DDFileLogger alloc] init]; // File Logger 
fileLogger.rollingFrequency = 60 * 60 * 24; // 24 hour rolling
fileLogger.maximumFileSize = 0;
fileLogger.logFileManager.maximumNumberOfLogFiles = 1;
fileLogger.logFileManager.logFilesDiskQuota = 0;
[DDLog addLogger:fileLogger];
_fileLogger = fileLogger;
NSLog(@"%s %@",__func__,fileLogger.logFileManager);
NSLog(@"%s %@",__func__,[fileLogger.logFileManager logsDirectory]);


after comment these lines, other places crash. it seems like it will crash at the place where 3rd-party library uses.



Can anybody help? many thanks to you!



I attach the crash logs here:



https://www.dropbox.com/s/9iqpgph6gqbnpbt/BleLocker%20%202018-11-22%20%E4%B8%8B%E5%8D%885-07.crash?dl=0










share|improve this question
















I joined a new company last day, they use svn to store code, they even store cocoapods repos in the svn alongside the source code.



They can build and run the code successfully without any modification and without pod install



But after I check it out, I can build it successfully , but crashed when run.



The first place crashes is :



DDFileLogger *fileLogger = [[DDFileLogger alloc] init]; // File Logger 
fileLogger.rollingFrequency = 60 * 60 * 24; // 24 hour rolling
fileLogger.maximumFileSize = 0;
fileLogger.logFileManager.maximumNumberOfLogFiles = 1;
fileLogger.logFileManager.logFilesDiskQuota = 0;
[DDLog addLogger:fileLogger];
_fileLogger = fileLogger;
NSLog(@"%s %@",__func__,fileLogger.logFileManager);
NSLog(@"%s %@",__func__,[fileLogger.logFileManager logsDirectory]);


after comment these lines, other places crash. it seems like it will crash at the place where 3rd-party library uses.



Can anybody help? many thanks to you!



I attach the crash logs here:



https://www.dropbox.com/s/9iqpgph6gqbnpbt/BleLocker%20%202018-11-22%20%E4%B8%8B%E5%8D%885-07.crash?dl=0







ios svn cocoapods xcode10






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 22 '18 at 10:58







Alex Chan

















asked Nov 22 '18 at 9:35









Alex ChanAlex Chan

65221329




65221329













  • Can you show your crash logs too?

    – Natarajan
    Nov 22 '18 at 9:52











  • Did you do a clean & full build? Didn't they put some built code on SVN?

    – beeci
    Nov 22 '18 at 9:52











  • Yes, I did a full clean and build

    – Alex Chan
    Nov 22 '18 at 10:51











  • Put a break on all exceptions, so you can trace the code back into BleLocker. Also, check that the issue appears only with this version of iOS?

    – beeci
    Nov 22 '18 at 11:30











  • It seems only related to Mac. with other's Mac and my iphone, it works fine. the same code

    – Alex Chan
    Nov 22 '18 at 11:51



















  • Can you show your crash logs too?

    – Natarajan
    Nov 22 '18 at 9:52











  • Did you do a clean & full build? Didn't they put some built code on SVN?

    – beeci
    Nov 22 '18 at 9:52











  • Yes, I did a full clean and build

    – Alex Chan
    Nov 22 '18 at 10:51











  • Put a break on all exceptions, so you can trace the code back into BleLocker. Also, check that the issue appears only with this version of iOS?

    – beeci
    Nov 22 '18 at 11:30











  • It seems only related to Mac. with other's Mac and my iphone, it works fine. the same code

    – Alex Chan
    Nov 22 '18 at 11:51

















Can you show your crash logs too?

– Natarajan
Nov 22 '18 at 9:52





Can you show your crash logs too?

– Natarajan
Nov 22 '18 at 9:52













Did you do a clean & full build? Didn't they put some built code on SVN?

– beeci
Nov 22 '18 at 9:52





Did you do a clean & full build? Didn't they put some built code on SVN?

– beeci
Nov 22 '18 at 9:52













Yes, I did a full clean and build

– Alex Chan
Nov 22 '18 at 10:51





Yes, I did a full clean and build

– Alex Chan
Nov 22 '18 at 10:51













Put a break on all exceptions, so you can trace the code back into BleLocker. Also, check that the issue appears only with this version of iOS?

– beeci
Nov 22 '18 at 11:30





Put a break on all exceptions, so you can trace the code back into BleLocker. Also, check that the issue appears only with this version of iOS?

– beeci
Nov 22 '18 at 11:30













It seems only related to Mac. with other's Mac and my iphone, it works fine. the same code

– Alex Chan
Nov 22 '18 at 11:51





It seems only related to Mac. with other's Mac and my iphone, it works fine. the same code

– Alex Chan
Nov 22 '18 at 11:51












1 Answer
1






active

oldest

votes


















0














Er, I've found the reason, I evaluated a third-party security tool yesterday that will replace original clang with its own clang.



This clang will crash the app






share|improve this answer
























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53427816%2fbuild-success-but-run-crash-while-others-run-successfully-after-check-ios-code-f%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Er, I've found the reason, I evaluated a third-party security tool yesterday that will replace original clang with its own clang.



    This clang will crash the app






    share|improve this answer




























      0














      Er, I've found the reason, I evaluated a third-party security tool yesterday that will replace original clang with its own clang.



      This clang will crash the app






      share|improve this answer


























        0












        0








        0







        Er, I've found the reason, I evaluated a third-party security tool yesterday that will replace original clang with its own clang.



        This clang will crash the app






        share|improve this answer













        Er, I've found the reason, I evaluated a third-party security tool yesterday that will replace original clang with its own clang.



        This clang will crash the app







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 22 '18 at 12:22









        Alex ChanAlex Chan

        65221329




        65221329
































            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53427816%2fbuild-success-but-run-crash-while-others-run-successfully-after-check-ios-code-f%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

            ComboBox Display Member on multiple fields

            Is it possible to collect Nectar points via Trainline?