Domanda

Nel simulatore, non ho questo problema ma quando eseguo l'app sul mio dispositivo applicationDidBecomeActive e applicationWillTerminate non sono chiamati. È perché sono jailbreak e gestisce lo sfondo ecc.? Ecco il registro GDB da Xcode:

    [Session started at 2010-02-28 15:37:00 +0900.]
GNU gdb 6.3.50-20050815 (Apple version gdb-1460) (Fri Feb  5 06:29:49 UTC 2010)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i386-apple-darwin --target=arm-apple-darwin".tty /dev/ttys006
Loading program into debugger…
Program loaded.
target remote-mobile /tmp/.XcodeGDBRemote-582-78
Switching to remote-macosx protocol
mem 0x1000 0x3fffffff cache
mem 0x40000000 0xffffffff none
mem 0x00000000 0x0fff none
run
Running…
[Switching to thread 11779]
[Switching to thread 11779]
sharedlibrary apply-load-rules all
continue
warning: UUID mismatch detected with the loaded library - on disk is:
 /Volumes/Xcode/MyAppName/build/Debug-iphoneos/MyAppName.app/MyAppName
warning: Unable to read symbols for "/Library/MobileSubstrate/MobileSubstrate.dylib" (file not found).
warning: Unable to read symbols for "/Library/RockExtensions/RockExtensions.dylib" (file not found).
2010-02-28 15:37:26.270 MyAppName[997:207] MS:Notice: Installing: com.yourcompany.MyAppName [MyAppName] (478.52)
2010-02-28 15:37:26.423 MyAppName[997:207] MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/Backgrounder.dylib
warning: Unable to read symbols for "/Library/MobileSubstrate/DynamicLibraries/Backgrounder.dylib" (file not found).
warning: Unable to read symbols for "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.1 (7C144)/Symbols/usr/lib/libsubstrate.dylib" (file not found).
2010-02-28 15:37:26.654 MyAppName[997:207] MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/FCSB.dylib
warning: Unable to read symbols for "/Library/MobileSubstrate/DynamicLibraries/FCSB.dylib" (file not found).
warning: Unable to read symbols for "/Library/RockExtensions/RockInject.dylib" (file not found).
warning: Unable to read symbols for "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.1 (7C144)/Symbols/usr/lib/librockextension.dylib" (file not found).
2010-02-28 15:37:27.112 MyAppName[997:207] RE:Notice: Launching: com.yourcompany.MyAppName
MS:Warning: message not found [MyAppName applicationWillResignActive:]
MS:Warning: message not found [MyAppName applicationDidBecomeActive:]

Molte grazie per qualsiasi aiuto.

È stato utile?

Soluzione

Questo...

warning: UUID mismatch detected with the loaded library - on disk is:
 /Volumes/Xcode/MyAppName/build/Debug-iphoneos/MyAppName.app/MyAppName

... è il bacio della morte per un progetto di jailbreak. Significa che nessuno dei tuoi percorsi, che sono costruiti dall'UUID, si risolverà. Sul dispositivo, il caricatore non riesce letteralmente a trovare i percorsi per i file necessari.

Dovrebbe esserci qualcosa nella catena dello strumento di jailbreak per compensare questo, ma non ricordo cosa sia.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top