osx - To use XCode for Perl Scripts -


minimum script practicing conversion of terminal scripts perl , using them in xcode

use strict; use warnings;  ## conversion of one-liner script perl -mo=deparse # original command: perl -ne 'print unless /[0-5]/' input.txt > output.txt # got following command from: perl -mo=deparse -ne 'print unless /[0-5]/' # notice: -e syntax ok while (defined($_ = <argv>)) {     print $_ unless     /[0-5]/; } input.txt > output.txt 

i set settings described in answer running perl in xcode . however, unsure should have here in parameters. set nothing there. confused sentence:

go arguments tab , ensure main script first argument. add more arguments , environment variables necessary.

i run script , following 0_dyld_start message in osx yosemite 10.10.3, similar here in python

dyld`_dyld_start: ->  0x7fff5fc01000 <+0>:   popq   %rdi     0x7fff5fc01001 <+1>:   pushq  $0x0     0x7fff5fc01003 <+3>:   movq   %rsp, %rbp     0x7fff5fc01006 <+6>:   andq   $-0x10, %rsp     0x7fff5fc0100a <+10>:  subq   $0x10, %rsp     0x7fff5fc0100e <+14>:  movl   0x8(%rbp), %esi     0x7fff5fc01011 <+17>:  leaq   0x10(%rbp), %rdx     0x7fff5fc01015 <+21>:  movq   0x37aec(%rip), %r8        ; _dyld_start_static     0x7fff5fc0101c <+28>:  leaq   -0x23(%rip), %rcx         ; <+0>     0x7fff5fc01023 <+35>:  subq   %r8, %rcx     0x7fff5fc01026 <+38>:  leaq   -0x102d(%rip), %r8     0x7fff5fc0102d <+45>:  leaq   -0x8(%rbp), %r9     0x7fff5fc01031 <+49>:  callq  0x7fff5fc01076            ; dyldbootstrap::start(macho_header const*, int, char const**, long, macho_header const*, unsigned long*)     0x7fff5fc01036 <+54>:  movq   -0x8(%rbp), %rdi     0x7fff5fc0103a <+58>:  cmpq   $0x0, %rdi     0x7fff5fc0103e <+62>:  jne    0x7fff5fc01050            ; <+80>     0x7fff5fc01040 <+64>:  movq   %rbp, %rsp     0x7fff5fc01043 <+67>:  addq   $0x8, %rsp     0x7fff5fc01047 <+71>:  movq   $0x0, %rbp     0x7fff5fc0104e <+78>:  jmpq   *%rax     0x7fff5fc01050 <+80>:  addq   $0x10, %rsp     0x7fff5fc01054 <+84>:  pushq  %rdi     0x7fff5fc01055 <+85>:  movq   0x8(%rbp), %rdi     0x7fff5fc01059 <+89>:  leaq   0x10(%rbp), %rsi     0x7fff5fc0105d <+93>:  leaq   0x8(%rsi,%rdi,8), %rdx     0x7fff5fc01062 <+98>:  movq   %rdx, %rcx     0x7fff5fc01065 <+101>: movq   (%rcx), %r8     0x7fff5fc01068 <+104>: addq   $0x8, %rcx     0x7fff5fc0106c <+108>: testq  %r8, %r8     0x7fff5fc0106f <+111>: jne    0x7fff5fc01065            ; <+101>     0x7fff5fc01071 <+113>: jmpq   *%rax     0x7fff5fc01073 <+115>: nop     

in info, set /usr/bin/perl described in above thread. in product > scheme, put disabled xpc services , view debugging (i think latter 1 osx tools debugging disabled it).

how can set correctly settings perl in xcode? mistake in setting arguments.

try remove 'v' :

product ->scheme-> editscheme -> info -> , remove 'v' 'debug executable' box.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -